Custom Fields
Re-Envisioned
Support MB Frontend Submission use previous post as a template

  • Creator
    Topic
  • #32983
    jim
    Participant

    Process :
    open the template post, Modify data, submit.
    create new post and submit Modified data without change template data.

    Maybe I can use hook "rwmb_frontend_after_process".
    How to create new post and copy data to new post?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #32987
    Long Nguyen
    Moderator

    Hi Jim,

    Do you mean to use the data of the previous post as the default data of the new post? It's not possible to do with the plugin MB Frontend Submission.

    #32994
    jim
    Participant

    Does metabox or wordpress have a function to create a new post in the hook?

    #33001
    Long Nguyen
    Moderator

    Hi Jim,

    You can use the WordPress function wp_insert_post() to create posts https://developer.wordpress.org/reference/functions/wp_insert_post/

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