Automattic\WooCommerce\Blocks\Integrations
IntegrationRegistry::get_all_registered_editor_script_handles
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() IntegrationRegistry::get all registered editor script handles WC 10.4.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 ) );
}