restore_previous_locale
do_action( ‘restore_previous_locale’, string $locale , string $previous_locale )
动作钩子::当区域设置恢复到上一个时激发。
Action Hook: Fires when the locale is restored to the previous one.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$locale | (string) | 新的地点。 |
$previous_locale | (string) | 上一个区域设置。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.7.0 | wp-includes/class-wp-locale-switcher.php:129 | 1 | 0 |
restore_previous_locale 为WP2原创文章,链接:https://www.wp2.cn/hook/restore_previous_locale-2/