Support

Account

Home Forums Front-end Issues Set field value on acf save post

Unread

Set field value on acf save post

  • Hi,

    Sorry i have read the doc, update_field update_value but i don’t understand how to set my acf field value in ACF save post.

    Could i have a simple example please ?

    function my_acf_save_post( $post_id ) {

    }
    add_action(‘acf/save_post’, ‘my_acf_save_post’, 20);

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.