Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::add_loading_classes()publicWC 1.0

Set the admin full screen class when loading to prevent flashes of unstyled content.

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

No Hooks.

Return

Array.

Usage

$OnboardingSetupWizard = new OnboardingSetupWizard();
$OnboardingSetupWizard->add_loading_classes( $classes );
$classes(true|false) (required)
Body classes.

Code of OnboardingSetupWizard::add_loading_classes() WC 7.1.0

public function add_loading_classes( $classes ) {
	/* phpcs:disable WordPress.Security.NonceVerification */
	if ( $this->is_setup_wizard() ) {
		$classes .= ' woocommerce-admin-full-screen';
	}
	/* phpcs: enable */

	return $classes;
}