Automattic\WooCommerce\Internal\Admin\Settings
SettingsUIRequestContext::filter_script_handles
Filter extension-provided script handles to valid WordPress script handle strings.
Метод класса: SettingsUIRequestContext{}
Хуков нет.
Возвращает
Строку[].
Использование
$result = SettingsUIRequestContext::filter_script_handles( $script_handles ): array;
- $script_handles(массив) (обязательный)
- Raw script handles.
Код SettingsUIRequestContext::filter_script_handles() SettingsUIRequestContext::filter script handles WC 10.9.1
private static function filter_script_handles( array $script_handles ): array {
return array_values(
array_filter(
$script_handles,
static function ( $script_handle ): bool {
return is_string( $script_handle ) && '' !== $script_handle;
}
)
);
}