Automattic\WooCommerce\Blocks\Templates
ArchiveProductTemplatesCompatibility::is_archive_template()
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() ArchiveProductTemplatesCompatibility::is archive template code WC 9.4.2
private function is_archive_template() { return is_shop() || is_product_taxonomy(); }