A WordPress-centric search engine for devs and theme authors



customize_sanitize_js_{$this->id} ›

Since3.4.0
Deprecatedn/a
apply_filters( "customize_sanitize_js_{$this->id}", $this->value()
Parameters: (2)
  • (mixed) $value The setting value.
    Required: Yes
  • (WP_Customize_Setting) $this WP_Customize_Setting instance.
    Required: Yes
Defined at:
Codex:

Filters a Customize setting value for use in JavaScript.

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





Source

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