前言介紹
- 這款 WordPress 外掛「Change Last Modified Date」是 2017-07-28 上架。
- 目前有 2000 個安裝啟用數。
- 上一次更新是 2024-08-21,距離現在已有 256 天。
- 外掛最低要求 WordPress 5.1 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 12 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
djuric |
外掛標籤
edit date | last-modified | edit last modified | change last modified |
內容簡介
使用這個外掛程式,您可以輕鬆更改或防止每個文章的「最後修改日期」更新。控制「最後修改日期」可以讓您方便地控制文章(或自訂文章型別)的「按最後修改日期排序」。
啟用此外掛程式後,將在側邊欄的「狀態與可見性」面板中啟用「最後修改日期」選項。您可以透過點擊日期鏈結並選擇文章的新日期,更改修改日期。也可以通過開啟「凍結修改日期」選項,禁用未來的最後修改日期更新。
自訂文章型別支援
為了更新「最後修改日期」,該外掛程式使用「rest_pre_insert_{$post_type}」鉤子,該鉤子在「init」執行之前執行,而其他自訂文章型別通常是在此註冊的。這是該外掛程式不知道任何 WordPress 核心以外的其他額外文章類型的原因。如果要支援其他文章類型,您可以在 wp-config.php 中添加以下格式的常數:
define( 'CLM_DATE_POST_TYPES', ['post-type-slug-1', 'post-type-slug-2'] );
自訂文章型別還需要聲明「自訂欄位」支援。
支援
如需支援或代碼貢獻,請參閱 Github 存儲庫。
原文外掛簡介
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Change Last Modified Date」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.2 | 1.3 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.4.5 | 1.4.6 | 1.4.7 | trunk |
延伸相關外掛(你可能也想知道)
WP Last Modified Info 》WP Last Modified Info:內容更新時間的最佳外掛, 大部分 WordPress 主題通常會顯示文章最後發表的日期。這對於大部分的部落格和靜態網站來說是沒有問題的。...。
Last Modified Timestamp 》此外掛可向管理介面新增有關每篇文章/頁面的最後修改時間的資訊(包括自訂文章型別)。, 功能增強的區域為:, , 頁面/文章管理表 – 新增可以進行排序的...。
Show modified Date in admin lists 》這個外掛可以在 WordPress 管理面板的頁面和文章清單中顯示一個新的、可排序的修改日期欄位,同時也會顯示做出最後修改的使用者名稱。, 我們在一個網站上需要...。
Post Updated Date 》使用「Posts Modified Date」外掛,簡單地在每篇單獨的文章前顯示文章更新日期!, WordPress 可以用於各種用途。大多數部落客希望在部落格文章中顯示最後更新...。
WP Last Modified 》WP Last Modified 外掛可以在您的 WordPress 安裝中加入「last_modified_date」短代碼。這個短代碼會顯示您的文章/頁面的最後修改時間戳記。您可以使用「form...。
Last-Modified and If-Modified-Since Headers 》此外掛可將「最後修改日期」標頭添加到每篇文章中,並在客戶端發送「If-Modified-Since」標頭且該文章自指定日期以來未更改時,在回應中返回「304 Not Modifi...。
Products and Orders Last Modified for WC REST API 》這是一款簡單的外掛程式,可使用 Woocommerce REST API,根據修改日期檢索最新修改的產品和訂單。, 安裝插件後,您可以通過 Woocommerce REST API 存取特定日...。
Last modified header 》自動發送 HTTP 標頭 "last-modified"。, 您可以使用文章的最後修改時間或創建日期...(在管理設置中進行設置)。
Smart WordPress 》優化您的網站緩存行為!由Velocious.io開發的Smart WordPress僅在有更改時重新載入頁面。, 許多用戶會放棄緩慢加載的網站。這不足為奇!沒有人喜歡瀏覽緩慢的...。
Server Response 》Server Response 插件可協助您調整伺服器回應標題並關閉 REST API。, 插件功能:, , , 關閉 REST API。, , , 從伺服器回應中移除 REST API 鏈接。, , , 在伺服...。
Сontrol Post Modified Date 》This plugin allows you to optionally keep the last post modified date unchanged when you update the post in WordPress Classic Editor., It adds date...。
LH Add Headers 》304 Not Modified HTTP Header 是告訴訪問者網頁自上次訪問以來沒有任何更改。這很重要,因為如果沒有此標頭,訪問者可能每次都要重新下載您的網頁,進而減慢...。
File Time Monitor 》此外掛可讓您輕鬆地從 WordPress 儀表板上一覽最多 20 個檔案的「最後修改時間」。, 如果您定期透過 WP All Import、WordPress Importer 或類似方式進行匯入...。