Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



customize_sanitize_js_{$this->id} ›

Seit3.4.0
Veraltetn/v
apply_filters( "customize_sanitize_js_{$this->id}", $this->value()
Parameter: (2)
  • (mixed) $value The setting value.
    Erforderlich: Ja
  • (WP_Customize_Setting) $this WP_Customize_Setting instance.
    Erforderlich: Ja
Definiert in:
Codex:

Filters a Customize setting value for use in JavaScript.

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





Quellcode

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