Automattic\WooCommerce\Blocks\Assets

AssetDataRegistry::execute_lazy_data()protectedWC 1.0

Loops through each registered lazy data callback and adds the returned value to the data array.

This method is executed right before preparing the data for printing to the rendered screen.

Method of the class: AssetDataRegistry{}

No Hooks.

Return

null. Nothing (null).

Usage

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

AssetDataRegistry::execute_lazy_data() code WC 8.7.0

protected function execute_lazy_data() {
	foreach ( $this->lazy_data as $key => $callback ) {
		$this->data[ $key ] = $callback();
	}
}