CF Expiring Content Shortcode

Allows designated content to be shown only until an expiration date/time.

Author:Crowd Favorite (profile at wordpress.org)
WordPress version required:2.5
WordPress version tested:3.0.5
Plugin version:1.0
Added to WordPress repository:01-11-2010
Last updated:01-11-2010
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://crowdfavorite.com/wordpress/plugins/ex...
Total downloads:2 909
Active installs:70+
plugin download
Click to start download

Simply wrap your content in the shortcode and set the date/time you'd like it to expire - once that time is eclipsed, it will no longer appear.

The date format is anything that can be parsed by PHP's strtotime function. A few examples:

  • [expires on="2010-10-01"]Expires on October 1, 2010[/expires]
  • [expires on="Jan 3, 2011"]Expires on January 11, 2011[/expires]
  • [expires on="12/3/2012 23:16:00"]Expires on December 2, 2012 at 11:16pm[/expires]
  • [expires on="2015-01-01 + 15 days"]Expires on January 16, 2015[/expires]

Don't use relative times like 'today' or 'tomorrow', as they will be evaluated from the current time/date - not an anchored time/date.

A plugin by Crowd Favorite; we build Big Things with WordPress.