wpseek.com
A WordPress-centric search engine for devs and theme authors



customize_sanitize_js_{$this->id} › WordPress Filter Hooks

Since3.4.0
Deprecatedn/a
apply_filters( "customize_sanitize_js_{$this->id}", $this->value()
Parameters: (2)
  • () value The setting value.
    Required: Yes
  • () setting 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 );