Outil de recherche WordPress pour les développeurs et auteurs de thèmes



customize_validate_{$this->id} ›

Depuis4.6.0
Dépréciéen/a
apply_filters( "customize_validate_{$this->id}", $validity, $value, $this )
Paramètres: (3)
  • (WP_Error) $validity Filtered from `true` to `WP_Error` when invalid.
    Requis: Oui
  • (mixed) $value Value of the setting.
    Requis: Oui
  • (WP_Customize_Setting) $this WP_Customize_Setting instance.
    Requis: Oui
Défini(e) dans:
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.





Source

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