• Creator
    Topic
  • #32868
    shmaltz
    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

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #32873
    Long 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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.