A WordPress-centric search engine for devs and theme authors



change_locale ›

Since4.7.0
Deprecatedn/a
do_action( 'change_locale', $locale )
Parameters:
  • (string) $locale The new locale.
    Required: Yes
Defined at:
Codex:

Fires when the locale is switched to or restored.





Source

do_action( 'change_locale', $locale );