pre_determine_locale钩子是Wordpress钩子,过滤器::在默认确定过程之前筛选当前请求的区域设置。
apply_filters( ‘pre_determine_locale’, string|null $locale )
说明(Description)
使用这个过滤器可以覆盖默认逻辑,有效地使函数短路。
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $locale | (string | null) | 要返回和短路的区域设置。默认为空。 |
源码(Source)
//暂无
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 5.0.0 | wp-includes/l10n.php:131 | 1 | 0 |





















