Automattic\WooCommerce\Blocks\Payments\Integrations

PayPal::is_activepublicWC 1.0

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

Method of the class: PayPal{}

No Hooks.

Returns

true|false.

Usage

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

PayPal::is_active() code WC 9.9.3

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