Automattic\WooCommerce\Blocks\Utils
BlocksSharedState::check_consent
Check that the consent statement was passed.
Метод класса: BlocksSharedState{}
Хуков нет.
Возвращает
true.
Использование
$result = BlocksSharedState::check_consent( $consent_statement ): bool;
- $consent_statement(строка) (обязательный)
- The consent statement string.
Код BlocksSharedState::check_consent() BlocksSharedState::check consent WC 11.0.1
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 the API may change.' );
}
return true;
}