跳到内容

Simple Post Expiration

v1.0.1

Syed Balkhi · 2014年8月19日 上架

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.

正在使用
400+
评分
4.6 / 5
累计下载
1.7 万
最近更新
2016年10月10日
7 条评价需要 WordPress 3.6+已测试到 4.7.40

截图

Metabox added to each post / custom post type
Metabox added to each post / custom post type
Metabox with calendar showing
Metabox with calendar showing
Expired post with modified title
Expired post with modified title
Expired / Expiring Posts widget
Expired / Expiring Posts widget

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!

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums