Show admin notice if metabox field is empty during save post
You could for example save an error flag to a transient in save_post, if a required field is empty, and the display the admin notice based on the transient. This concept is demonstrated in in this old answer. Another option is to add a simple script to the editing view which would alert the user … Read more