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
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() WooPayments::is extension active code WC 10.5.0
protected function is_extension_active(): bool {
return class_exists( '\WC_Payments' );
}