Automattic\WooCommerce\Blocks\SharedStores
ProductsStore::check_consent
Check that the consent statement was passed.
Метод класса: ProductsStore{}
Хуков нет.
Возвращает
true.
Использование
$result = ProductsStore::check_consent( $consent_statement ): bool;
- $consent_statement(строка) (обязательный)
- The consent statement string.
Код ProductsStore::check_consent() ProductsStore::check consent WC 11.3.0
private static function check_consent( string $consent_statement ): bool {
if ( $consent_statement !== self::$consent_statement ) {
throw new InvalidArgumentException( 'This method cannot be called without consenting that the API may change.' );
}
return true;
}