Add validation and error handling when saving custom fields?

Store errors in your class or as a global, possibly in a transient or meta, and display them in admin notices on POST requests. WP does not feature any flash message handler.

Leave a Comment

tech