WordPress开发者和主题制作者的搜索引擎



switch_locale ›

Since4.7.0
已弃用n/a
do_action( 'switch_locale', $locale )
参数:
  • (string) $locale The new locale.
    Required: Yes
定义在:
文档:

Fires when the locale is switched.





源码

do_action( 'switch_locale', $locale );