Limit Modified Date, WordPress Plugin

I often update my older posts with additional information to keep them fresh and accurate. I include both the “Published” date and “Last Updated” date at the top of posts so users know the history and accuracy of the article.

The WordPress function get_the_modified_date() can be used to list this date, but there’s one small problem. It changes for any update, no matter how minor.

If I’m fixing a typo or adjusting the categories on the post, I don’t want the modified date to change. So I built a plugin.

Limit Modified Date

This plugin works with both the Gutenberg block editor and classic editor.

View Plugin

This plugin adds a checkbox to the Publish box that lets you prevent the modified date from updating. Leave this checked while you’re making your minor content changes.

When it’s time for a notable content update, uncheck the box and save the post.

Gutenberg Compatible

Whether you’re using the Classic Editor or the new Gutenberg block editor, this plugin will work great for you.

Release WordPress Development

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk

Reader Interactions

Comments

  1. Chris Brailsford says

    Hey Bill, quick question: if the checkbox is already set for the post and someone modifies the tags via the Quick Edit box on the All Posts listing, will it still prevent the modified date from changing?

    Funny enough, I was just thinking about this problem the other day!

    • Bill Erickson says

      Yes, the plugin will prevent the modified date from updating, even for the Quick Edit box.

      At least it’s working in my testing, but I haven’t used this plugin anywhere other than my site yet.

      If you do find issues, please let me know!

  2. Andrew says

    Great plugin. I’ve always hated that simply fixing a typo or some other minor thing changed the modified date. I installed it about 2 seconds after I found this post.

    One very small thing: In your description you refer to “unchecking the check box” to update the modified date, which makes sense (rather than checking the box each time). But the checkbox is not checked by default. I made the change in my limit-modified-date.php file but thought i’d point it out to you as well.

    • Bill Erickson says

      Correct, I didn’t want to change the default saving functionality for all article immediately. You must enable it for the article by first checking the box. Once it is checked, it remains checked until you uncheck it, which is what I was describing.

Leave A Reply