Automattic\WooCommerce\Admin

WCAdminHelper::is_store_page()public staticWC 1.0

Deprecated from version 9.8.0. It is no longer supported and can be removed in future releases. Use is_current_page_store_page instead.

Test if a URL is a store page.

Method of the class: WCAdminHelper{}

No Hooks.

Returns

true|false. Whether or not the URL is a store page.

Usage

$result = WCAdminHelper::is_store_page( $url );
$url(string)
URL to check. If not provided, the current URL will be used.
Default: ''

Changelog

Deprecated since 9.8.0 Use is_current_page_store_page instead.

WCAdminHelper::is_store_page() code WC 9.8.5

public static function is_store_page( $url = '' ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found
	_deprecated_function( __METHOD__, '9.8.0', 'is_current_page_store_page' );
	return self::is_current_page_store_page();
}