customize_post_value_set
do_action( ‘customize_post_value_set’, string $setting_id , mixed $value , WP_Customize_Manager $this )
动作钩子:当任何设置的未初始化post值被设置时通知。
Action Hook: Announce when any setting’s unsanitized post value has been set.
说明(Description)
调用WP_Customize_Manager::set_post_value()方法时激发。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$setting_id | (string) | 正在设置ID。 |
$value | (mixed) | 未初始化的设置post值。 |
$this | (WP_Customize_Manager) | WP_自定义管理器实例。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/class-wp-customize-manager.php:1874 | 1 | 0 |
customize_post_value_set 为WP2原创文章,链接:https://www.wp2.cn/hook/customize_post_value_set/