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