woocommerce_is_extension_store_page filter-hookWC 9.3.0

Filter if a URL is a store page.

Usage

add_filter( 'woocommerce_is_extension_store_page', 'wp_kama_woocommerce_is_extension_store_page_filter', 10, 2 );

/**
 * Function for `woocommerce_is_extension_store_page` filter-hook.
 * 
 * @param bool   $is_store_page Whether or not the URL is a store page.
 * @param string $url           URL to check.
 *
 * @return bool
 */
function wp_kama_woocommerce_is_extension_store_page_filter( $is_store_page, $url ){

	// filter...
	return $is_store_page;
}
$is_store_page(true|false)
Whether or not the URL is a store page.
$url(string)
URL to check.

Changelog

Since 9.3.0 Introduced.

Where the hook is called

WCAdminHelper::is_store_page()
woocommerce_is_extension_store_page
woocommerce/src/Admin/WCAdminHelper.php 252
$is_store_page = apply_filters( 'woocommerce_is_extension_store_page', false, $url );

Where the hook is used in WooCommerce

Usage not found.