Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingSetupWizard::set_viewport_meta_tag()publicWC 9.0.0

Set the viewport meta tag for the setup wizard.

Method of the class: OnboardingSetupWizard{}

No Hooks.

Return

String. Viewport meta content value.

Usage

$OnboardingSetupWizard = new OnboardingSetupWizard();
$OnboardingSetupWizard->set_viewport_meta_tag( $viewport_meta );
$viewport_meta(string) (required)
Viewport meta content value.

Changelog

Since 9.0.0 Introduced.

OnboardingSetupWizard::set_viewport_meta_tag() code WC 9.0.1

public function set_viewport_meta_tag( $viewport_meta ) {
	if ( ! $this->is_setup_wizard() ) {
		return $viewport_meta;
	}

	return 'width=device-width, initial-scale=1.0, maximum-scale=1.0';
}