WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

Automattic\WooCommerce\Blocks\Payments

PaymentMethodRegistry::get_all_active_payment_method_script_dependencies() public WC 1.0

Gets an array of all registered payment method script handles, but only for active payment methods.

{} Это метод класса: PaymentMethodRegistry{}

Хуков нет.

Возвращает

Строку[].

Использование

$PaymentMethodRegistry = new PaymentMethodRegistry();
$PaymentMethodRegistry->get_all_active_payment_method_script_dependencies();

Код PaymentMethodRegistry::get_all_active_payment_method_script_dependencies() WC 5.4.1

<?php
public function get_all_active_payment_method_script_dependencies() {
	$script_handles  = [];
	$payment_methods = $this->get_all_active_registered();

	foreach ( $payment_methods as $payment_method ) {
		$script_handles = array_merge(
			$script_handles,
			is_admin() ? $payment_method->get_payment_method_script_handles_for_admin() : $payment_method->get_payment_method_script_handles()
		);
	}

	return array_unique( array_filter( $script_handles ) );
}