Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
WooCommercePayments::is_account_partially_onboarded
Check if WooPayments needs setup. Errored data or payments not enabled.
Method of the class: WooCommercePayments{}
No Hooks.
Returns
true|false.
Usage
$result = WooCommercePayments::is_account_partially_onboarded();
WooCommercePayments::is_account_partially_onboarded() WooCommercePayments::is account partially onboarded code WC 10.3.6
public static function is_account_partially_onboarded() {
if ( ! self::is_wcpay_active() ) {
return false;
}
$wc_payments_gateway = self::get_gateway();
if ( $wc_payments_gateway && method_exists( $wc_payments_gateway, 'is_account_partially_onboarded' ) ) {
return $wc_payments_gateway->is_account_partially_onboarded();
}
return false;
}