customize_preview_{$this->type}
do_action( “customize_preview_{$this->type}”, WP_Customize_Setting $this )
动作钩子::在调用WP_Customize_Setting::preview()方法以获取未作为主题模式或选项处理的设置时激发。
Action Hook: Fires when the WP_Customize_Setting::preview() method is called for settings not handled as theme_mods or options.
说明(Description)
钩子名的动态部分,$this->type引用了设置类型。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$this | (WP_Customize_Setting) | WP_自定义设置实例。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.1.0 | wp-includes/class-wp-customize-setting.php:411 | 1 | 0 |
customize_preview_{$this->type} 为WP2原创文章,链接:https://www.wp2.cn/hook/customize_preview_this-type/