I have a custom post type and a completely custom user interface to access it, and would like these posts to have a publish status. I know how to make them skip trash and be deleted immediately, but this still leaves me with draft posts and private posts.
Is there a way to prevent posts getting flagged as drafts or private? I can hide the controls in CSS but I want to do this in code to make sure it isn't possible, is there a handy filter I can use?
save_post
/wp_insert_post
filter to disallow or making it impossible to save this CPT as draft/private.post_submitbox_misc_actions
filter for example?