Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

awesomemotive/Simple-Post-Expiration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Post Expiration

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.

About

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.

Resources

Stars

Watchers

Forks

Packages

No packages published