is_product_tag( string $term = '' )

Is_product_tag – Returns true when viewing a product tag.


Description Description


Parameters Parameters

$term

(Optional) (default: '') The term slug your checking for. Leave blank to return true on any.

Default value: ''


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/wc-conditional-functions.php

	function is_product_tag( $term = '' ) {
		return is_tax( 'product_tag', $term );
	}


Top ↑

User Contributed Notes User Contributed Notes

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