Automattic\WooCommerce\Blocks\SharedStores

ProductsStore::check_consentprivate staticWC 1.0

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() 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;
}