Meta Box
Support Forum
Support › MB Frontend Submission › Set Post StatusResolved
In a frontend form, I want to allow the user to set the status of their post to Public or Private.
What's the best way to do this?
Hello,
You can create a select field with options post statuses, then use the function wp_update_post() to update the post status after submitting a post on the frontend. Refer to this topic https://support.metabox.io/topic/controlling-post-status-in-front-end-dashboard/?swcfpc=1
Thank you I'll try that.