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