Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Payments::is_woopayments_activeprivateWC 1.0

Check if the WooPayments plugin is active.

Method of the class: Payments{}

No Hooks.

Returns

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->is_woopayments_active(): bool;

Payments::is_woopayments_active() code WC 10.9.4

private function is_woopayments_active(): bool {
	return class_exists( '\WC_Payments' );
}