wpseek.com
A WordPress-centric search engine for devs and theme authors



switch_locale › WordPress Action Hooks

Since6.2.0
Deprecatedn/a
do_action( 'switch_locale', $locale, $user_id )
Parameters: (2)
  • (string) $locale The new locale.
    Required: Yes
  • (false|int) $user_id User ID for context if available.
    Required: Yes
Defined at:
Codex:

Fires when the locale is switched.





Source

do_action( 'switch_locale', $locale, $user_id );