customize_value_{$this->id_data[‘base’]}
云策文档标注
概述
customize_value_{$this->id_data['base']} 是一个 WordPress 过滤器钩子,用于自定义未作为 theme_mod 或 option 处理的设置值。它允许开发者动态修改设置值,基于设置的基 slug。
关键要点
- 这是一个动态钩子,钩子名称中的 $this->id_data['base'] 部分引用设置名称的基 slug。
- 适用于未通过 theme_mod 或 option 处理的设置,对于这些情况,应使用相应的钩子。
- 参数 $default 为设置的默认值,默认为空。
- 该钩子自 WordPress 3.4.0 版本引入。
原文内容
Filter a Customize setting value not handled as a theme_mod or option.
Description
The dynamic portion of the hook name, $this->id_date['base'], refers to the base slug of the setting name.
For settings handled as theme_mods or options, see those corresponding functions for available hooks.
Parameters
$defaultmixed-
The setting default value. Default empty.
Source
*
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |