Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
WooCommercePayments::is_wcpay_active
Check if the WooPayments plugin is active.
Method of the class: WooCommercePayments{}
No Hooks.
Returns
true|false.
Usage
$result = WooCommercePayments::is_wcpay_active();
WooCommercePayments::is_wcpay_active() WooCommercePayments::is wcpay active code WC 10.6.2
public static function is_wcpay_active() {
return class_exists( '\WC_Payments' );
}