插件名

WP Post Expires

评分

66

安装步骤:
  1. Copy to plugins folder (/wp-content/plugins)

  2. Activate plugin from plugins page in admin interface

  3. Use the Settings->Reading Name screen to configure the plugin

描述:

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)
下载地址:
点击下载