
/**
 * Keep ordinary members in the front-end account area instead of the WordPress
 * administration dashboard. Administrators retain normal wp-admin access.
 */
add_filter('show_admin_bar', function($show) {
    return is_user_logged_in() && !current_user_can('manage_options') ? false : $show;
}, 99);

add_action('admin_init', function() {
    if (!is_user_logged_in() || current_user_can('manage_options')) return;

    // Preserve WordPress action endpoints used by front-end forms and integrations.
    $script = isset($_SERVER['PHP_SELF']) ? basename(sanitize_text_field(wp_unslash($_SERVER['PHP_SELF']))) : '';
    if (in_array($script, array('admin-ajax.php', 'admin-post.php', 'async-upload.php'), true)) return;

    wp_safe_redirect(home_url('/akun-member/'));
    exit;
}, 1);

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//ranahcendekia.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://ranahcendekia.com/post-sitemap.xml</loc>
		<lastmod>2025-08-31T15:33:36+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://ranahcendekia.com/page-sitemap.xml</loc>
		<lastmod>2026-11-09T07:02:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://ranahcendekia.com/rc_photo-sitemap.xml</loc>
		<lastmod>2026-11-09T05:46:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://ranahcendekia.com/category-sitemap.xml</loc>
		<lastmod>2025-08-31T15:33:36+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://ranahcendekia.com/post_tag-sitemap.xml</loc>
		<lastmod>2025-08-31T15:33:36+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://ranahcendekia.com/rc_photo_category-sitemap.xml</loc>
		<lastmod>2026-11-09T05:46:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://ranahcendekia.com/rc_photo_tag-sitemap.xml</loc>
		<lastmod>2026-11-09T05:46:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://ranahcendekia.com/rc_photographer-sitemap.xml</loc>
		<lastmod>2026-11-09T05:46:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://ranahcendekia.com/author-sitemap.xml</loc>
		<lastmod>2026-11-08T18:50:29+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->