wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



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

Da4.6.0
Deprecaton/a
› apply_filters( "customize_validate_{$this->id}", $validity, $value, $this )
Parametri: (3)
  • () validity Filtered from `true` to `WP_Error` when invalid.
    Richiesto: Sì
  • () value Value of the setting.
    Richiesto: Sì
  • () setting WP_Customize_Setting instance.
    Richiesto: Sì
Definito a:
Codex:

Validates a Customize setting value.

Plugins should amend the `$validity` object via its `WP_Error::add()` method. The dynamic portion of the hook name, `$this->ID`, refers to the setting ID.




Sorgenti

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