switch_to_locale


switch_to_locale ( $locale )

Parameters:
  • (string) locale The locale.
Returns:
  • (bool) True on success, false on failure.
Defined at:

Description

Switches the translations according to the given locale.

Related Functions

switch_to_user_locale, switch_to_blog, switch_theme, get_locale, wp_cache_switch_to_blog

Top Google Results

User discussions

wpseek mobile