Mandatory fields in Custom Post Types [duplicate]

agree that the question is broad. first thought is you could hook into pre_post_update and check for the presence of the fields you require. if they are there, save the post. if they are not there, then do not save, but generate an admin notice.

edit: based on comments, save_post is too late, so i’ve amended the answer to say pre_post_update