WordPress开发者和主题制作者的搜索引擎



customize_sanitize_js_{$this->id} ›

Since3.4.0
已弃用n/a
apply_filters( "customize_sanitize_js_{$this->id}", $this->value()
参数: (2)
  • (mixed) $value The setting value.
    Required: Yes
  • (WP_Customize_Setting) $this WP_Customize_Setting instance.
    Required: Yes
定义在:
文档:

Filters a Customize setting value for use in JavaScript.

The dynamic portion of the hook name, $this->id, refers to the setting ID.





源码

$value = apply_filters( "customize_sanitize_js_{$this->id}", $this->value(), $this );