Support » Fixing WordPress » Programatically save ACF on post save

  • Hello,
    I please you for any idea. I have custom post type with ACF repeater with some records for evidence some changes. I am using gutenberg.

    Every Time I save the post, I want to add new row into this ACF repeater. The row is correctly added, but some milliseconds after is this row removed. I try to save it in hook post_updated with very low priority (hight order), but the problem is the some. I mean the problem is because I added row into repeater, which is not refreshed on the client side, so some moments after is repeater returned to old state.

    If is my reasoning good, it is possible to refresh the ACF box after post is saved? If not, do you have any idea?

    Thank you so much,

    • This topic was modified 1 month, 3 weeks ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Developing with WordPress topic
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Programatically save ACF on post save’ is closed to new replies.