
// حذف همه کلاس‌های پیش‌فرض و فقط اضافه کردن نام دسته‌بندی برای محصولات و نوشته‌ها
add_filter( 'body_class', function( $classes ) {
    // برای نوشته‌ها
    if ( is_single() && ! is_singular( 'product' ) ) {
        $categories = get_the_category();
        if ( ! empty( $categories ) ) {
            $new_classes = [];
            foreach ( $categories as $category ) {
                $new_classes[] = $category->slug;
            }
            return $new_classes;
        }
    }
    
    // برای محصولات ووکامرس
    if ( is_singular( 'product' ) ) {
        $terms = get_the_terms( get_the_ID(), 'product_cat' );
        if ( $terms && ! is_wp_error( $terms ) ) {
            $new_classes = [];
            foreach ( $terms as $term ) {
                $new_classes[] = $term->slug;
            }
            return $new_classes;
        }
    }
    
    return $classes;
}, 999 );
?><?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet type='text/xsl' href='https://tuberax.ir/wp-content/plugins/google-sitemap-generator/sitemap.xsl'?><!-- sitemap-generator-url='http://www.arnebrachhold.de' sitemap-generator-version='4.1.23' -->
<!-- generated-on='2026-07-04 8:58 pm' -->
<sitemapindex xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd' xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>	<sitemap>
		<loc>https://tuberax.ir/sitemap-misc.xml</loc>
		<lastmod>2026-07-04T20:40:28+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://tuberax.ir/category-sitemap.xml</loc>
		<lastmod>2026-07-04T20:40:28+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://tuberax.ir/post-sitemap.xml</loc>
		<lastmod>2026-07-04T20:40:28+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://tuberax.ir/page-sitemap.xml</loc>
		<lastmod>2026-02-13T21:15:29+00:00</lastmod>
	</sitemap>
</sitemapindex><!-- Request ID: b987087e1ae4672124afe0ba61d4d1b4; Queries for sitemap: 8; Total queries: 45; Seconds: 0.02; Memory for sitemap: 1KB; Total memory: 71.5MB -->
