Automattic\WooCommerce\Blocks\Integrations

IntegrationRegistry::get_all_registered_editor_script_handles()publicWC 1.0

Gets an array of all registered integration's script handles for the editor.

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

Хуков нет.

Возвращает

Строку[].

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

$IntegrationRegistry = new IntegrationRegistry();
$IntegrationRegistry->get_all_registered_editor_script_handles();

Код IntegrationRegistry::get_all_registered_editor_script_handles() WC 8.7.0

public function get_all_registered_editor_script_handles() {
	$script_handles          = [];
	$registered_integrations = $this->get_all_registered();

	foreach ( $registered_integrations as $registered_integration ) {
		$script_handles = array_merge(
			$script_handles,
			$registered_integration->get_editor_script_handles()
		);
	}

	return array_unique( array_filter( $script_handles ) );
}