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{}

Хуков нет.

Возвращает

Массив.

Использование

$OnboardingSetupWizard = new OnboardingSetupWizard();
$OnboardingSetupWizard->add_loading_classes( $classes );
$classes(true|false) (обязательный)
Body classes.

Код OnboardingSetupWizard::add_loading_classes() WC 6.6.1

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;
}