wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



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

Od4.6.0
Przestarzałyn/a
› apply_filters( "customize_validate_{$this->id}", $validity, $value, $this )
Parametry: (3)
  • () validity Filtered from `true` to `WP_Error` when invalid.
    Wymagane: Tak
  • () value Value of the setting.
    Wymagane: Tak
  • () setting WP_Customize_Setting instance.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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