sandywp / plugins / change-last-modified-date

Change Last Modified Date

4.3 out of 5 stars. 4.3 12 reviews

Change or prevent updating Last Modified date for individual posts.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.4.8 3,000+ installs WP 5.1+ PHP 5.6+

your-sandbox.sandywp.com/wp-admin
Change Last Modified Date running inside a SandyWP sandbox

What you get inside

1 screen
  • screenshot-1.png

About this plugin

Using this plugin you can easily change or prevent updating the last modified date for each post. Controlling the last modified date can come in handy when you would like to control “order by last modified” for posts (or custom post type).

When this plugin is active it will enable Last modified date options in Status & Visibility panel in sidebar. Changing the modified date can be done by clicking the date link and selecting a new date for the post. It’s also possible to disable future updates of the last modified date by setting the “Freeze modified date” option to on.

Custom post types support

To update the last modified date, plugin is using “rest_pre_insert_{$post_type}” hook which is executed before “init” where other custom post types are usually registered. This is the reason why plugin is not aware of any additional post types other than those registered by WordPress core. To support additional post types you can add constant in following format to wp-config.php:

define( 'CLM_DATE_POST_TYPES', ['post-type-slug-1', 'post-type-slug-2'] );

Custom post types are also required to have “custom-fields” support declared.

Support

For support or code contributions please refer to Github repo.

4.3

12 reviews

  • 5 ★ 9
  • 4 ★ 0
  • 3 ★ 1
  • 2 ★ 1
  • 1 ★ 1

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.