Automattic\WooCommerce\Admin

WCAdminHelper::is_store_pagepublic staticWC 1.0

Устарела с версии 9.8.0. Больше не поддерживается и может быть удалена. Используйте is_current_page_store_page.

Test if a URL is a store page.

Метод класса: WCAdminHelper{}

Хуков нет.

Возвращает

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

Использование

$result = WCAdminHelper::is_store_page( $url );
$url(строка)
URL to check. If not provided, the current URL will be used.
По умолчанию: ''

Список изменений

Устарела с 9.8.0 Use is_current_page_store_page instead.

Код WCAdminHelper::is_store_page() 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();
}