Automattic\WooCommerce\Blocks\Integrations
IntegrationRegistry::get_all_registered_editor_script_handles()
Gets an array of all registered integration's script handles for the editor.
Method of the class: IntegrationRegistry{}
No Hooks.
Return
String[]
.
Usage
$IntegrationRegistry = new IntegrationRegistry(); $IntegrationRegistry->get_all_registered_editor_script_handles();
IntegrationRegistry::get_all_registered_editor_script_handles() IntegrationRegistry::get all registered editor script handles code WC 9.8.1
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 ) ); }