Lock Last Modified Date

By NEXTFLY® Web Design

★ 4.0/5 (1 ratings)80+ active installationsVersion 1.1.1

With this plugin, you can prevent the last modified date from being updated for minor edits, such as fixing typos or updating thumbnails.

Description

Lock Last Modified Date allows you to control when your post’s modified date gets updated. This is particularly useful when:

  • Making minor typo corrections
  • Updating thumbnails or images
  • Making small formatting changes
  • Any other minor edits where you don’t want to update the last modified date

Features

  • Compatible with both Classic Editor and Gutenberg
  • Simple toggle interface in the post editor
  • Maintains the original modified date when enabled
  • Works with all post types
  • No configuration needed

Available Filter Hook

nextfly_llmd_modified_time_format( $format )

Use this filter to customize the date/time format in the editor.

Installation

  1. Upload the plugin files to the /wp-content/plugins/lock-last-modified-date directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the checkbox in the post editor’s publish box to lock/unlock the modified date

FAQ

Does it support Classic Editor?

Yes, the plugin is fully compatible with Classic Editor.

Does it support Gutenberg Editor?

Yes, the plugin works seamlessly with the Gutenberg editor.

Where can I find the lock option?

In Classic Editor: Look for the checkbox in the Publish meta box.
In Gutenberg: Find the toggle in the post settings sidebar under the “Status & Visibility” panel.

Screenshots

Changelog

1.1.1

  • Changed: Minimum WordPress version is now 6.6
  • Fixed: Locking an already published post in the Block Editor reset its modified date to the publication date instead of preserving it
  • Fixed: Turning the lock on in the Block Editor was ignored for that save on posts whose content contains no block markup, such as older Classic Editor posts
  • Fixed: Revisions of a locked post were saved with an empty modified date

1.1.0

  • Fixed: Modified date now correctly set to the backdated publication date when locking on first publish

1.0.0

  • Initial release
  • Added support for both Classic Editor and Gutenberg
  • Implemented date locking functionality
  • Added filter hook for date format customization