Automattic\WooCommerce\Admin\API
OnboardingProfile::get_profile_progress()
Get the onboarding profile progress.
Метод класса: OnboardingProfile{}
Хуков нет.
Возвращает
WP_Error|WP_REST_Response
.
Использование
$OnboardingProfile = new OnboardingProfile(); $OnboardingProfile->get_profile_progress( $request );
- $request(WP_REST_Request) (обязательный)
- Request data.
Код OnboardingProfile::get_profile_progress() OnboardingProfile::get profile progress WC 9.7.1
public function get_profile_progress( $request ) { $onboarding_progress = (array) get_option( Profile::PROGRESS_OPTION, array() ); return rest_ensure_response( $onboarding_progress ); }