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.

Метод класса: AssetDataRegistry{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->execute_lazy_data();

Код AssetDataRegistry::execute_lazy_data() WC 8.7.0

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