Wordpress - check if post is updated
2 answers
If the post or page hasn't changed yet, the modified time is the same as the creation time.
So you can just use the_modified_time()
and if the message hasn't been modified it will return the creation time.
To check if a post has been modified, check if there is the_modified_time() == the_time()
.
+6
source to share