woocommerce_store_pages
woocommerce_store_pages
Appears in: woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3
Hook Type: filter
Displaying hooks found in version: woocommerce.9.2.3apply_filters('woocommerce_store_pages') is found 1 times:
- /src/Admin/WCAdminHelper.php line 168
*
* @since 8.8.0
* @param array $store_pages The store pages array. The keys are the page slugs and the values are the page IDs.
*/
$store_pages = apply_filters( ‘woocommerce_store_pages’, $store_pages );// If the shop page is not set, we will still show the product archive page.
// Therefore, we need to check if the URL is a product archive page when the shop page is not set.
if ( $store_pages[‘shop’] <= 0 ) { $product_post_archive_link = get_post_type_archive_link( 'product' ); [/php]