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