[wp-trac] [WordPress Trac] #43019: Hook to validate post form data before save

WordPress Trac noreply at wordpress.org
Thu May 31 19:46:23 UTC 2018

#43019: Hook to validate post form data before save
 Reporter:  henry.wright                         |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch ux-feedback needs-testing  |     Focuses:

Comment (by foresmac):

 This would be super useful. Maybe the way to do it is to have the callback
 return an array of WP_Error for each custom field that fails validation?
 If it's empty, then there are no custom field errors.

Ticket URL: <https://core.trac.wordpress.org/ticket/43019#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list