WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Assets

AssetDataRegistry::register_data_script() public WC 1.0

Callback for registering the data script via WordPress API.

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

No Hooks.

Return

null. Nothing.

Usage

$AssetDataRegistry = new AssetDataRegistry();
$AssetDataRegistry->register_data_script();

Code of AssetDataRegistry::register_data_script() WC 5.6.0

public function register_data_script() {
	$this->api->register_script(
		$this->handle,
		'build/wc-settings.js',
		[],
		true
	);
}