How to validate custom fields in custom post type?
I wrote a plugin that creates a custom post type with custom fields. To prevent users from entering incorrect information, how can I validate the data? I assumed that the save_post hook function would process field validation, but I can’t seem to find a straight forward way that displays errors back to the user. Is … Read more