WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Assets

AssetDataRegistry::init() protected WC 1.0

Hook into WP asset registration for enqueueing asset data.

{} It's a method of the class: AssetDataRegistry{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->init();

Code of AssetDataRegistry::init() WC 5.6.0

protected function init() {
	add_action( 'init', array( $this, 'register_data_script' ) );
	add_action( 'wp_print_footer_scripts', array( $this, 'enqueue_asset_data' ), 1 );
	add_action( 'admin_print_footer_scripts', array( $this, 'enqueue_asset_data' ), 1 );
}