Automattic\WooCommerce\Blocks\Payments\Integrations
CashOnDelivery::is_active
Returns if this payment method should be active. If false, the scripts will not be enqueued.
Метод класса: CashOnDelivery{}
Хуков нет.
Возвращает
true|false.
Использование
$CashOnDelivery = new CashOnDelivery(); $CashOnDelivery->is_active();
Код CashOnDelivery::is_active() CashOnDelivery::is active WC 10.3.4
public function is_active() {
return filter_var( $this->get_setting( 'enabled', false ), FILTER_VALIDATE_BOOLEAN );
}