Lets assume you are creating a Custom Post Type for publishing events. You do not wish to show the publish button to your editors until all the event fields are properly filled and validated.

This can be achieved using below code


Leave a Reply

Your email address will not be published. Required fields are marked *