WC_Brands_Block_Templates::is_taxonomy_product_brand_template()privateWC 1.0

Function to check if a template name is woocommerce/taxonomy-product_brand

Notice depending on the version of WooCommerce this could be:

woocommerce//taxonomy-product_brand woocommerce/woocommerce//taxonomy-product_brand

Метод класса: WC_Brands_Block_Templates{}

Хуков нет.

Возвращает

true|false. True if the template is woocommerce/taxonomy-product_brand

Использование

// private - только в коде основоного (родительского) класса
$result = $this->is_taxonomy_product_brand_template( $id );
$id(String) (обязательный)
The string to check if contains the template name.

Код WC_Brands_Block_Templates::is_taxonomy_product_brand_template() WC 9.6.1

private function is_taxonomy_product_brand_template( $id ) {
	return strpos( $id, 'woocommerce//taxonomy-product_brand' ) !== false;
}