Automattic\WooCommerce\Admin
WCAdminHelper::is_store_page
Deprecated since 9.8.0. It is no longer supported and may 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() WCAdminHelper::is store page code WC 10.7.0
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();
}