Automattic\WooCommerce\Blocks\SharedStores
ProductsStore::check_consent
Check that the consent statement was passed.
Method of the class: ProductsStore{}
No Hooks.
Returns
true.
Usage
$result = ProductsStore::check_consent( $consent_statement ): bool;
- $consent_statement(string) (required)
- The consent statement string.
ProductsStore::check_consent() ProductsStore::check consent code WC 10.8.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 that the API may change.' );
}
return true;
}