Automattic\WooCommerce\Internal\Admin
WcPayWelcomePage::is_wcpay_active
Check if the WooPayments plugin is active.
Method of the class: WcPayWelcomePage{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->is_wcpay_active(): bool;
WcPayWelcomePage::is_wcpay_active() WcPayWelcomePage::is wcpay active code WC 10.3.6
private function is_wcpay_active(): bool {
return class_exists( '\WC_Payments' );
}