Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

validate_callback? #18

Open
Luc45 opened this issue Jan 18, 2019 · 0 comments
Open

validate_callback? #18

Luc45 opened this issue Jan 18, 2019 · 0 comments

Comments

@Luc45
Copy link

Luc45 commented Jan 18, 2019

Hi,

I see there is a sanitize_callback, which is nice. But I wonder, is there a validate_callback?

The differences between those two are:

  • Validation can block a setting from being update. Sanitization only cleans unwanted characters.
  • Validation shows error messages when it fails. Example: Name must have at least 3 characters.
  • Sanitization is nice, but it's usually a step made before validation.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant