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


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. Null. Ничего.


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

Код AssetDataRegistry::initialize_core_data() WC 5.1.0

protected function initialize_core_data() {
	 * Low level hook for registration of new data late in the cycle.
	 * Developers, do not use this hook as it is likely to be removed.
	 * Instead, use the data api:
	 * Automattic\WooCommerce\Blocks\Package::container()
	 *     ->get( Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry::class )
	 *     ->add( $key, $value )
	$settings = apply_filters(

	// 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() );