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

Automattic\WooCommerce\Blocks\Integrations

IntegrationRegistry::initialize() public WC 1.0

Initializes all registered integrations.

Integration identifier is used to construct hook names and is given when the integration registry is initialized.

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

Возвращает

null. Ничего.

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

$IntegrationRegistry = new IntegrationRegistry();
$IntegrationRegistry->initialize( $registry_identifier );
$registry_identifier(строка)
Identifier for this registry.

Код IntegrationRegistry::initialize() WC 5.4.1

<?php
public function initialize( $registry_identifier = '' ) {
	if ( $registry_identifier ) {
		$this->registry_identifier = $registry_identifier;
	}

	if ( empty( $this->registry_identifier ) ) {
		_doing_it_wrong( __METHOD__, esc_html( __( 'Integration registry requires an identifier.', 'woocommerce' ) ) );
		return false;
	}

	/**
	 * Hook: integration_registration.
	 *
	 * Runs before integrations are initialized allowing new integration to be registered for use. This should be
	 * used as the primary hook for integrations to include their scripts, styles, and other code extending the
	 * blocks.
	 *
	 * @param IntegrationRegistry $this Instance of the IntegrationRegistry class which exposes the IntegrationRegistry::register() method.
	 */
	do_action( 'woocommerce_blocks_' . $this->registry_identifier . '_registration', $this );

	foreach ( $this->get_all_registered() as $registered_integration ) {
		$registered_integration->initialize();
	}
}