Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function display_last_updated_date() {
- $u_time = get_the_time('U');
- $u_modified_time = get_the_modified_time('U');
- if ($u_modified_time >= $u_time + 86400) {
- $updated_date = get_the_modified_time('F jS, Y');
- echo '<div class="last-updated">This post was last updated on ' , $updated_date , '.</div>';
- }
- }
Add Comment
Please, Sign In to add comment