Hunter Black Hat SEO
Server:LiteSpeed
System:Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User:gazetufm (1431)
PHP:8.1.35
Disabled:NONE
Upload Files
File: //home2/gazetufm/matrix-financials.com/wp-content/plugins/envo-extra/lib/woocommerce.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if ( !function_exists( 'envo_extra_product_categories' ) ) {

	function envo_extra_product_categories() {

		if ( get_theme_mod( 'woo_archive_product_categories', 1 ) == 1 ) {
			global $product;

			$name	 = '';
			$id		 = $product->get_id();
			$cat_ids = $product->get_category_ids();

			// if product has categories, concatenate cart item name with them
			if ( $cat_ids ) {
				$name = wc_get_product_category_list( $id, ', ', '<div class="archive-product-categories">', '</div>' );
			}

			echo wp_kses_post( $name );
		}
	}

	add_action( 'woocommerce_after_shop_loop_item_title', 'envo_extra_product_categories', 1 );
}