Automattic\WooCommerce\Blocks\Payments\Integrations
CashOnDelivery::is_active()
Returns if this payment method should be active. If false, the scripts will not be enqueued.
Method of the class: CashOnDelivery{}
No Hooks.
Return
true|false
.
Usage
$CashOnDelivery = new CashOnDelivery(); $CashOnDelivery->is_active();
CashOnDelivery::is_active() CashOnDelivery::is active code WC 8.7.0
public function is_active() { return filter_var( $this->get_setting( 'enabled', false ), FILTER_VALIDATE_BOOLEAN ); }