When I save my custom post_type ‘product’, I’d like to set their status to my custom status ‘incomplete’.
1 comment
Comments are closed.
When I save my custom post_type ‘product’, I’d like to set their status to my custom status ‘incomplete’.
Comments are closed.
Hook
wp_insert_post_data
filter to force a post status to be set as incomplete before it can be set as published. With the following code only a post that is set as incomplete can be saved: