Automattic\WooCommerce\Blocks\Templates

ArchiveProductTemplatesCompatibility::is_archive_template()privateWC 1.0

Check if current page is a product archive template.

Method of the class: ArchiveProductTemplatesCompatibility{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->is_archive_template();

ArchiveProductTemplatesCompatibility::is_archive_template() code WC 9.4.2

private function is_archive_template() {
	return is_shop() || is_product_taxonomy();
}