switch_to_locale
switch_to_locale ( $locale )
Parameters:- (string) locale The locale.
Returns:- (bool) True on success, false on failure.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Switches the translations according to the given locale.