Automattic\WooCommerce\Blocks\Utils
BlocksSharedState::load_store_config
Load store config (currency, locale, core data) into interactivity config.
Method of the class: BlocksSharedState{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = BlocksSharedState::load_store_config( $consent_statement ): void;
- $consent_statement(string) (required)
- The consent statement string.
BlocksSharedState::load_store_config() BlocksSharedState::load store config code WC 10.8.1
public static function load_store_config( string $consent_statement ): void {
self::check_consent( $consent_statement );
if ( self::$core_config_registered ) {
return;
}
self::$core_config_registered = true;
wp_interactivity_config( self::$settings_namespace, self::get_currency_data() );
wp_interactivity_config( self::$settings_namespace, self::get_locale_data() );
}