publish_cpt action

Support MB Frontend Submission publish_cpt action

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32868
    shmaltzshmaltz
    Participant

    I am using the publish_{cpt} action when creating posts on the backend to set meta field data based on the fields, and I want to fire these actions when posting in the frontend too.

    I tried using add_action('rwmb_frontend_after_save_post', 'custom_function'); but that didn't work.

    Any ideas?

    Thank you

    #32873
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please share the code that you are using to set the field value? You can use the helper function rwmb_set_meta() or WordPress function update_post_meta() to set the field value.

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