switch_to_user_locale


switch_to_user_locale ( $user_id )

Parameters:
  • (int) user_id User ID.
Returns:
  • (bool) True on success, false on failure.
Defined at:

Description

Switches the translations according to the given user's locale.

Related Functions

switch_to_locale, get_user_locale, switch_to_blog, switch_theme, is_user_option_local

Top Google Results

User discussions

wpseek mobile