Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives
WooPayments::is_extension_active
Check if the extension plugin is active.
Method of the class: WooPayments{}
No Hooks.
Returns
boolean. 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() WooPayments::is extension active code WC 11.3.0
protected function is_extension_active(): bool {
return class_exists( '\WC_Payments' );
}