woocommerce_store_pages

woocommerce_store_pages

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.1.2

apply_filters('woocommerce_store_pages') is found 1 times:

  • /src/Admin/WCAdminHelper.php line 169

    *
    * @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]