Automattic\WooCommerce\Blocks\Payments\Integrations
Cheque::get_payment_method_script_handles
Returns an array of scripts/handles to be registered for this payment method.
Метод класса: Cheque{}
Хуков нет.
Возвращает
Массив.
Использование
$Cheque = new Cheque(); $Cheque->get_payment_method_script_handles();
Код Cheque::get_payment_method_script_handles() Cheque::get payment method script handles WC 10.5.2
public function get_payment_method_script_handles() {
$this->asset_api->register_script(
'wc-payment-method-cheque',
'assets/client/blocks/wc-payment-method-cheque.js'
);
return [ 'wc-payment-method-cheque' ];
}