add_filter('rest_authentication_errors', function ($result) {
    if (!empty($result)) {
        return $result;
    }
    if (!is_user_logged_in() && (strpos($_SERVER['REQUEST_URI'], '/wp/v2/users') !== false || strpos($_SERVER['REQUEST_URI'], '/wc/v3/customers') !== false)) {
        return new WP_Error('rest_forbidden', 'دسترسی محدود شده است.', ['status' => 401]);
    }
    return $result;
});
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//persbookart.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://persbookart.com/post-sitemap.xml</loc>
		<lastmod>2024-12-15T19:17:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://persbookart.com/page-sitemap.xml</loc>
		<lastmod>2025-02-27T02:04:24+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://persbookart.com/portfolio-sitemap.xml</loc>
		<lastmod>2024-11-30T03:02:41+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://persbookart.com/product-sitemap.xml</loc>
		<lastmod>2022-08-01T19:13:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://persbookart.com/category-sitemap.xml</loc>
		<lastmod>2024-12-15T19:17:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://persbookart.com/post_tag-sitemap.xml</loc>
		<lastmod>2024-12-15T19:17:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://persbookart.com/portfolio_cat-sitemap.xml</loc>
		<lastmod>2024-11-30T03:02:41+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://persbookart.com/portfolio_tags-sitemap.xml</loc>
		<lastmod>2024-11-30T03:02:41+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://persbookart.com/product_cat-sitemap.xml</loc>
		<lastmod>2022-08-01T19:13:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://persbookart.com/product_tag-sitemap.xml</loc>
		<lastmod>2022-04-09T05:36:38+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->