Yoast\WP\SEO\Integrations\Third_Party
WooCommerce::get_page_id() public Yoast 1.0
Returns the ID of the WooCommerce shop page when the currently opened page is the shop page.
{} Это метод класса: WooCommerce{}
Хуков нет.
Возвращает
Число. The Page ID of the shop.
Использование
$WooCommerce = new WooCommerce(); $WooCommerce->get_page_id( $page_id );
- $page_id(число) (обязательный)
- The page id.
Код WooCommerce::get_page_id() WooCommerce::get page id Yoast 15.6.2
public function get_page_id( $page_id ) {
if ( ! $this->is_shop_page() ) {
return $page_id;
}
return $this->get_shop_page_id();
}