Get old values for post before saving new ones

The post_updated action gives you both old and new values as arguments before the new values are saved:

do_action( 'post_updated', $post_ID, $post_after, $post_before );

Leave a Comment