Set Post Status

Support MB Frontend Submission Set Post StatusResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42016
    shmaltzshmaltz
    Participant

    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?

    #42023
    PeterPeter
    Moderator

    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

    #42029
    shmaltzshmaltz
    Participant

    Thank you I'll try that.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.