Automattic\WooCommerce\Blocks\Integrations
IntegrationRegistry::get_all_registered_script_handles()
Gets an array of all registered integration's script handles.
Метод класса: IntegrationRegistry{}
Хуков нет.
Возвращает
Строку[]
.
Использование
$IntegrationRegistry = new IntegrationRegistry(); $IntegrationRegistry->get_all_registered_script_handles();
Код IntegrationRegistry::get_all_registered_script_handles() IntegrationRegistry::get all registered script handles WC 9.8.2
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 ) ); }