Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives

WooPayments::is_extension_active()protectedWC 1.0

Check if the extension plugin is active.

Method of the class: WooPayments{}

No Hooks.

Return

true|false. Whether the extension plugin is active.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_extension_active(): bool;

WooPayments::is_extension_active() code WC 9.6.1

protected function is_extension_active(): bool {
	return class_exists( '\WC_Payments' );
}