Create a new CPT entry on a submit from other FORM

Support MB Custom Table Create a new CPT entry on a submit from other FORM

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33938
    Marco CurcioMarco Curcio
    Participant

    Hi to all,
    I would need to save the information I collect in a hidden field while customizing a page in a new CPT.
    when I save the form, I would need to create and save the entry in another CPT currently saved in a different custom table
    with the hook rwmb_after_save_post I save the data correctly, but I don't know how to save the data of the single field in the custom table of another CPT.

    Thanks

    #33954
    Long NguyenLong Nguyen
    Moderator

    Hi Marco,

    You can create a function hook to the action rwmb_after_save_post and use some functions below:

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