Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::is_valid_onboarding_step_id
Check if the given onboarding step ID is valid.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
true|false. Whether the given onboarding step ID is valid.
Usage
$WooPaymentsService = new WooPaymentsService(); $WooPaymentsService->is_valid_onboarding_step_id( $step_id ): bool;
- $step_id(string) (required)
- The ID of the onboarding step.
WooPaymentsService::is_valid_onboarding_step_id() WooPaymentsService::is valid onboarding step id code WC 10.8.1
public function is_valid_onboarding_step_id( string $step_id ): bool {
return in_array(
$step_id,
array(
self::ONBOARDING_STEP_PAYMENT_METHODS,
self::ONBOARDING_STEP_WPCOM_CONNECTION,
self::ONBOARDING_STEP_TEST_ACCOUNT,
self::ONBOARDING_STEP_BUSINESS_VERIFICATION,
),
true
);
}