這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Limit Modified Date

外掛說明

Warning This plugin is no longer supported, and does not always work with the Gutenberg block editor.

I recommend using Change Last Modified Date instead.

Summary

Prevent the modified date from changing when making minor changes to your content.

This plugin adds a checkbox to the Publish box, “Don’t update the modified date”. When checked, saving your post does not update the post modified date.

Minor changes like adding tags or fixing typos won’t bump the modified date.

This plugin will maintain the previous modified date. It does not let you specify a custom modified date.

When you’re ready to publish a major content change, you can uncheck this setting before saving the post.

Customization

Your theme will need to use get_the_modified_date() to display the modified date.

This plugin only applies to the post post type by default. You can customize which post types it appears on using the limit_modified_date_post_types filter.

add_filter( 'limit_modified_date_post_types', function( $post_types ) {
    $post_types[] = 'page';
    return  $post_types;
});

螢幕擷圖

  • Published and modified date shown in theme
  • Checkbox in post editor

安裝方式

  1. Upload limit-modified-date to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. When editing a post, check “Don’t update the modified date” and save your post.

使用者評論

2021 年 7 月 5 日
WP should update modified date only when you make major changes to the article. I think WP should ignore small changes, for example, correction of character, Replaceing image,changing tag, etc.
2021 年 1 月 1 日
Thanks for this great little plugin. I had an issue after migrating to a new SEO plugin. I had a few hundred posts that needed a simple update to fix the issue. But as my blog shows an updated date, it would have wrecked the real recency of articles. It solved the problem! And also, now I can make any minor updates without changing the modified date. Thanks again.
2020 年 6 月 26 日
May god bless the author of this plugin. This is a very very useful plugin for sites which display Last modified date on the front end. repeatedly the one issue which arises is that u make one small change and the date changes. This plugin helps us do massive changes on site without tweaking the dates too much. Thanks again
2020 年 4 月 23 日
I have been long wanting an option like that. Didn't know it was available as a plugin. Thank you so much.
閱讀全部 8 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Limit Modified Date〉的開發相關工作。

參與者

將〈Limit Modified Date〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

Version 1.0.0
* Initial release