[WordPress] 外掛分享: Limit Modified Date

首頁外掛目錄 › Limit Modified Date
WordPress 外掛 Limit Modified Date 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
4,000+
安裝啟用
★★★★★
5/5 分(9 則評價)
1254 天前
最後更新
問題解決
WordPress 4.3+ v1.0.0 上架:2019-05-12

內容簡介

警告:此外掛已不再受支援,可能無法與古騰堡區塊編輯器兼容。

我建議改用 Change Last Modified Date 外掛。

概要

當對內容進行輕微更改時,避免修改日期被更新。

此外掛會在發佈區塊中添加一個核取方塊「不更新修改日期」。勾選後,儲存文章時將不會更新文章的修改日期。

像是新增標籤或更正錯字等輕微改動不會導致修改日期變更。

此外掛會保留上一次的修改日期,並不允許您指定自訂的修改日期。

當您準備發佈一個重大的內容變更時,可以在儲存文章之前取消勾選此設置。

自訂

您的佈景主題必須使用 get_the_modified_date() 函數來顯示修改日期。

此外掛預設僅適用於「文章」文章型別。您可以使用 limit_modified_date_post_types 過濾器來自訂哪些文章型別需要套用此外掛。

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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;
});

延伸相關外掛

文章
Filter
Apply Filters
Mastodon