Yoast\WP\SEO\Integrations\Third_Party
WooCommerce::is_shop_page() protected Yoast 1.0
Checks if the current page is a WooCommerce shop page.
{} Это метод класса: WooCommerce{}
Хуков нет.
Возвращает
true/false. True when the page is a shop page.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_shop_page();
Код WooCommerce::is_shop_page() WooCommerce::is shop page Yoast 15.6.2
protected function is_shop_page() {
if ( ! \is_shop() ) {
return false;
}
if ( \is_search() ) {
return false;
}
return true;
}