Home › Forums › ACF PRO › acf/save_post and api/admin columns › Reply To: acf/save_post and api/admin columns
I happened to content ACF support about this recently and got this response. I was specifically interested in updates via REST.
I am afraid the acf/save_post action hook in WordPress is intended to be triggered only when a post is saved or updated via the WordPress administration interface (the back-end), and it wouldn’t be triggered for updates made through the REST API or other programmatic means. This was because the acf/save_post hook was designed to be tied to the post editor’s actions.
If you want to perform additional actions when a post is created or updated through the REST API, you can use the rest_insert_post(rest_after_insert_{$post_type}) and rest_after_insert_post(rest_after_update_{$post_type}) hooks, which are specifically provided for handling REST API-related post actions.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.