acfpro

WordPress post update AFTER ACF field updates

允我心安 提交于 2020-07-03 13:17:48
问题 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? function yl_send_booking_email_after_post_update( $new