Automattic\WooCommerce\Blocks\Integrations

IntegrationRegistry::get_all_registered_script_handles()publicWC 1.0

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

Method of the class: IntegrationRegistry{}

No Hooks.

Return

String[].

Usage

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

IntegrationRegistry::get_all_registered_script_handles() code WC 8.6.1

public function get_all_registered_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_script_handles()
		);
	}

	return array_unique( array_filter( $script_handles ) );
}