Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::get_onboarding_step_required_steps
Get the IDs of the onboarding steps that are required for the given step.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
Array|String[]. The IDs of the onboarding steps that are required for the given step.
Usage
// private - for code of main (parent) class only $result = $this->get_onboarding_step_required_steps( $step_id ): array;
- $step_id(string) (required)
- The ID of the onboarding step.
WooPaymentsService::get_onboarding_step_required_steps() WooPaymentsService::get onboarding step required steps code WC 10.9.1
private function get_onboarding_step_required_steps( string $step_id ): array {
switch ( $step_id ) {
// Both the test account and business verification (live account) steps require a working WPCOM connection.
case self::ONBOARDING_STEP_TEST_ACCOUNT:
case self::ONBOARDING_STEP_BUSINESS_VERIFICATION:
return array(
self::ONBOARDING_STEP_WPCOM_CONNECTION,
);
default:
return array();
}
}