[WordPress] 外掛分享: WP Post Expires

WordPress 外掛 WP Post Expires 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WP Post Expires」是 2016-08-15 上架。
  • 目前有 2000 個安裝啟用數。
  • 上一次更新是 2020-11-02,距離現在已有 1643 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 有 14 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

x-nicon |

外掛標籤

expire | expiration | expired post | posts expiring | wordpress post expiry |

內容簡介

這是一個簡單的外掛程式,可讓您設定文章的某個日期,此日期之後將執行三種操作之一:「為標題新增前綴」、「移到草稿」、「移到垃圾桶」。

功能:

設定文章到期日期和時間
支援自訂文章類型(預設為文章和頁面)
到期文章的操作:移到草稿、移到垃圾桶或是新增自訂前綴至標題
在文章上增加「post-expired」的CSS樣式,以便在網站和管理介面上標示已過期的文章(方便主題自訂樣式)

在佈景主題中使用:
XNPostExpires::isExpired($post_id)

XNPostExpires::dateExpiration($post_id, $date_format)

原文外掛簡介

A simple plugin that allows to set the date for the posts, after which will be performed one of 3 actions: “Add prefix to title”, “Move to drafts”, “Move to trash”.
Features:

Set post expire date and time
Support custom post type (post and pages by default)
Action for expired posts: move to drafts, move to trash or add custom prefix for title
Adds class “post-expired” to post that expired on the site and in admin interface (for custom styles in theme)

Use in theme:
XNPostExpires::isExpired($post_id)

XNPostExpires::dateExpiration($post_id, $date_format)

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP Post Expires」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.0.1 | 1.0.2 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon