I created a custom WordPress plug-in that hooks onto 'save_post" using add_filter(). I need to do something with the post titles and whenever a user changes the title, my plug-in cannot get the new title until the post is updated a second time (without changing the title in the admin a second time).
For example, I have a post named "WordPress Rocks". I change it to "WordPress is Cool", but my plug-in shows the title as being "WordPress Rocks" using get_the_title($post_id) when updating the post. I go back and make a second update to the post, this time without changing the title. This next time, get_the_title($post_id) shows the title is "WordPress is Cool".
How can I grab the updated title (if it's changed) as soon as the post is updated?