WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
функция не описана

Automattic\WooCommerce\Blocks\Assets

AssetDataRegistry::initialize_core_data() protected WC 1.0

Used for on demand initialization of asset data and registering it with the internal data registry.

Note: core data will overwrite any externally registered data via the api.

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

Хуки из метода
Возвращает

null. Ничего.

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

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

Код AssetDataRegistry::initialize_core_data() WC 5.5.2

<?php
protected function initialize_core_data() {
	/**
	 * Low level hook for registration of new data late in the cycle. This is deprecated.
	 * Instead, use the data api:
	 * Automattic\WooCommerce\Blocks\Package::container()
	 *     ->get( Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry::class )
	 *     ->add( $key, $value )
	 */
	$settings = apply_filters( 'woocommerce_shared_settings', $this->data );

	// Surface a deprecation warning in the error console.
	if ( has_filter( 'woocommerce_shared_settings' ) ) {
		$error_handle  = 'deprecated-shared-settings-error';
		$error_message = '`woocommerce_shared_settings` filter in Blocks is deprecated. See https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/docs/contributors/block-assets.md';
		// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter,WordPress.WP.EnqueuedResourceParameters.MissingVersion
		wp_register_script( $error_handle, '' );
		wp_enqueue_script( $error_handle );
		wp_add_inline_script(
			$error_handle,
			sprintf( 'console.warn( "%s" );', $error_message )
		);
	}

	// note this WILL wipe any data already registered to these keys because they are protected.
	$this->data = array_replace_recursive( $settings, $this->get_core_data() );
}