Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Change Last Modified Date

Mô tả

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.

Ảnh màn hình

  • screenshot-1.png

Cài đặt

  1. Upload zip package to Plugins > Add New in admin of wordpress.
  2. Activate the plugin.

Đánh giá

21 Tháng Tư, 2021
Would love to use this plugin, but it doesn't work with the "classic editor" anymore. The author suggests using an earlier release, but I went back to version 1.3 and 1.2, and neither of them worked for me either. I code and manage a lot of commercial websites, and none of them uses Gutenberg, it's too easy for clients to mess up sites with it.
29 Tháng Tư, 2020
We love this little plugin. It does not add much overhead to the admin interface and simply does it's job.
21 Tháng Tư, 2020
Super simple and elegant. The best plugin of its kind. Thank you.
17 Tháng Tư, 2018 1 reply
I could not install it. But I put file 'update-last-modified.php' in Code Snippets, and it does its job.
Đọc tất cả 8 đánh giá

Người đóng góp & Lập trình viên

“Change Last Modified Date” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi

1.0

  • Initial release.

1.2

  • Remove unnecessary directory

1.3

  • Rewrite the plugin for new block editor

1.4.2

  • Fix plugin crashing for custom post types without custom fields support declared