Automattic\WooCommerce\Internal\Admin\Onboarding
OnboardingSetupWizard::add_loading_classes()
Set the admin full screen class when loading to prevent flashes of unstyled content.
Method of the class: OnboardingSetupWizard{}
No Hooks.
Return
Array
.
Usage
$OnboardingSetupWizard = new OnboardingSetupWizard(); $OnboardingSetupWizard->add_loading_classes( $classes );
- $classes(true|false) (required)
- Body classes.
OnboardingSetupWizard::add_loading_classes() OnboardingSetupWizard::add loading classes code WC 9.4.2
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; }