Toolonomy Logo
Last Updated on: October 31, 2020

Display Last Modified Date in WordPress [PHP Snippet]

If you looking for a way to display the Last Modified Date of a page instead of or along with the Published Date then this tiny piece of snippet would register a function for that and you could easily show the last updated date on your pages.

/* Advanced Scripts Method to Add This Snippet */
Title: PHP Snippet to Display Last Modified Date in WordPress
Type: PHP: Custom Code
Location: Plugins Loaded
Priority: 10

function syncwin_display_last_modified_date( ) {
return get_the_modified_time('F j, Y');

Explore our Facebook Community

Consider joining our Toolonomy Facebook Community if you want to involve in the group discussion with like-minded people about Business Development Tools.
Join Now
Made with ❤ for Digital Entrepreneurs
Copyright © 2018 - 2022 SyncWin | All Rights Reserved.
Top crossmenu