Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments

WooPaymentsService::is_onboarding_step_completedprivateWC 1.0

Check if the onboarding step has a completed status.

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

Хуков нет.

Возвращает

true|false. Whether the onboarding step is completed.

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

// private - только в коде основоного (родительского) класса
$result = $this->is_onboarding_step_completed( $step_id, $location ): bool;
$step_id(строка) (обязательный)
The ID of the onboarding step.
$location(строка) (обязательный)
The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.

Код WooPaymentsService::is_onboarding_step_completed() WC 10.9.4

private function is_onboarding_step_completed( string $step_id, string $location ): bool {
	return self::ONBOARDING_STEP_STATUS_COMPLETED === $this->get_onboarding_step_status( $step_id, $location );
}