內容簡介
這是一個簡單的外掛程式,允許您為文章設置到期日期。一旦文章到期,「已過期」將出現在文章標題前綴。
您可以使用 [expires] 短代碼來顯示文章的到期狀態。
[expires] 短代碼接受 5 個可選參數:
expires_on – 當文章尚未過期時顯示的文字。預設:This item expires on: %s
expired – 當文章過期時顯示的文字。預設:This item expired on: %s
date_format – 顯示到期日期的格式
class – 給 DIV 元素指定的類別或類別
id – 給 DIV 元素指定的 ID
其中的 %s 會被替換為到期日期。
您是否發現了錯誤,或者有建議或改進意見要提交?此外掛程式可在 Github 上使用,歡迎提交拉取要求!
外掛標籤
開發者團隊
原文外掛簡介
A simple plugin that allows you to set an expiration date on posts. Once a post is expired, “Expired” will be prefixed to the post title.
You can show the expiration status of a post using the [expires] short code.
The [expires] short code accepts 5 optional parameters:
expires_on – The text to be shown when a post has not yet expired. Default: This item expires on: %s
expired – The text to be shown when a post is expired. Default: This item expired on: %s
date_format – The format the expiration date should be displayed in
class – The class or classes given to the DIV element
id – The ID given to the DIV element
The %s will be replaced with the expiration date.
Have you found a bug or have a suggestion or improvement you’d like to submit? This plugin is available on Github and pull requests are welcome!
