Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

WooCommercePayments::is_account_partially_onboarded()public staticWC 1.0

Check if WooPayments needs setup. Errored data or payments not enabled.

Метод класса: WooCommercePayments{}

Хуков нет.

Возвращает

true|false.

Использование

$result = WooCommercePayments::is_account_partially_onboarded();

Код WooCommercePayments::is_account_partially_onboarded() WC 9.4.2

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;
}