• I am producing a form plugin. Can anyone recommend a good and reliable library to validate the fields on the backend side?
    What are the roles required to validate each field?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hopefully you can find the resources here helpful:
    https://codex.ww.wp.xz.cn/Validating_Sanitizing_and_Escaping_User_Data

    Moderator bcworkz

    (@bcworkz)

    There are a number of built-in sanitation functions in the resources that Jason linked to. Sanitation helps prevent malicious code from being entered.

    Validation confirms data is fit for purpose and should be as stringent as possible without being overly constraining. Ideal validation would be unique to a particular field, so generic validation functions would be less than ideal. Each should be developed for the specific field. There are however a number of generic approaches, but the specific constraints will vary by a field’s specific purpose.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Form backend side validation’ is closed to new replies.