Quantcast
Channel: Topic Tag: action | WordPress.org
Viewing all articles
Browse latest Browse all 892

The POST is saved BEFORE the Field is update. How to change?

$
0
0

The code below sends out an email every time I (change the STATUS field and then) safe/update the post. But it’s not working the way I want and I know whats’s wrong:

The field updates are always saved AFTER the post is saved so it always sends out the PREVIOUS field values (its like I’m always 1 step behind).

How can I let the POST UPDATE come LAST so that the then triggered action (send email) will have the latest field values included?

See code here: https://stackoverflow.com/questions/62221356/wordpress-post-update-after-acf-field-updates


Viewing all articles
Browse latest Browse all 892

Trending Articles