WP_Locale_Switcher::switch_to_locale

SummerySummery

Switches the translations according to the given locale.

Syntax

WP_Locale_Switcher::switch_to_locale( string $locale )

ParametersParameters

$locale

(string) (Required) The locale to switch to.

ReturnReturn

(bool) True on success, false on failure.

SourceSource

File: wp-includes/class-wp-locale-switcher.php


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top