
內容簡介
這是一個簡單的外掛程式,可讓您設定文章的某個日期,此日期之後將執行三種操作之一:「為標題新增前綴」、「移到草稿」、「移到垃圾桶」。
功能:
設定文章到期日期和時間
支援自訂文章類型(預設為文章和頁面)
到期文章的操作:移到草稿、移到垃圾桶或是新增自訂前綴至標題
在文章上增加「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)
