Uma área de pesquisa sobre o WordPress para devs e autores do tema



customize_sanitize_js_{$this->id} ›

Desde3.4.0
Obsoleton/a
apply_filters( "customize_sanitize_js_{$this->id}", $this->value()
Parâmetros: (2)
  • (mixed) $value The setting value.
    Required: Yes
  • (WP_Customize_Setting) $this WP_Customize_Setting instance.
    Required: Yes
Definido em:
Codex:

Filters a Customize setting value for use in JavaScript.

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





Fonte

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