determine_locale
apply_filters( ‘determine_locale’, string $locale )
筛选挂钩:筛选当前请求的区域设置。
Filter Hook: Filters the locale for the current request.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$locale | (string) | 地点。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.0.0 | wp-includes/l10n.php:157 | 1 | 0 |
determine_locale 为WP2原创文章,链接:https://www.wp2.cn/hook/determine_locale/