Automattic\WooCommerce\Blocks\Payments\Integrations

Cheque::is_active │ public │ WC 1.0

Returns if this payment method should be active. If false, the scripts will not be enqueued.

Method of the class: Cheque{}

No Hooks.

Returns

boolean.

Usage

$Cheque = new Cheque();
$Cheque->is_active();

Cheque::is_active() code WC 11.1.2

public function is_active() {
	return filter_var( $this->get_setting( 'enabled', false ), FILTER_VALIDATE_BOOLEAN );
}