[WordPress] 外掛分享: WP Post Expires

首頁外掛目錄 › WP Post Expires
WordPress 外掛 WP Post Expires 的封面圖片
2,000+
安裝啟用
★★★☆☆
3.3/5 分(14 則評價)
1962 天前
最後更新
問題解決
WordPress 5.0+ v1.2.5 上架:2016-08-15

內容簡介

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

功能:

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

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

XNPostExpires::dateExpiration($post_id, $date_format)

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Post Expires」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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)

文章
Filter
Apply Filters
Mastodon