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_blog, switch_theme, wp_cache_switch_to_blog, get_locale, get_user_locale

Top Google Results

User discussions

wpseek mobile