Astra_Woocommerce::single_product_category()

Show the product catagories in the product loop.


Description


Source

File: inc/compatibility/woocommerce/class-astra-woocommerce.php

		public function single_product_category() {
			/** @psalm-suppress InvalidGlobal */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
			global $product;
			echo '<span class="single-product-category">' . wp_kses_post( wc_get_product_category_list( $product->get_id(), ', ' ) ) . '</span>';
		}


User Contributed Notes

You must log in before being able to contribute a note or feedback.