WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Electric Studio Auto Post Expire

Adds an expiry date and time to posts, pages, or custom post types after which the post becomes expired.

1.6.10

  • Fixed one more line that was outputting notices

1.6.9

  • Refactored some of the internal code to prevent notices and warnings from populating the error_log
  • Introduced default values for some of the fields
  • New feature: added functionality to display how much time is left. Use es_time_left() within the loop. It will give you a human readable time difference in a variable, so you'll need to use echo on that. Uses human_time_diff(), and accounts for the frequency of the cron job.

1.6.8

  • Fixed a bug where automatic expirations would fire hooks, manual ones wouldn't. Now all will fire hooks.

1.6.7

  • Moved expiry functions over to built-in methods. Now hooks on post status transition and trash will also fire.

1.6.6

  • Fixed (hopefully) the random draft-set bug.

1.6.5

  • Changed comparison method for meta value.

1.6.4

  • Fixed cron scheduling. Mad props to MonkeyPress for spotting the problem! Thank you!

1.6.2

  • Removed some superfluous piece of code.

1.6.1

  • Added some logic to test for empty values in the date.

1.6

  • New feature: Default expiry time now added
  • New feature: Status can be chosen to go into once expired (not just draft)
  • New feature: Replaced functionality from pageload (init hook) to a cron job

1.5.5

  • Removed a blocking error message. This is a BETA thing, sometimes the expiry date/time will not save due to a nonce verification error which I'm looking into. (as of 15th October, 2012)

1.5.4

  • Removed a debugging related line.

1.5.3

  • If the nonce fails, the whole script would die(), but there's a call to an undefined function. That has been added back. It provides troubleshooting for me.

1.5.2

  • Solved a problem that resulted in a warning if no post types are selected is now fixed (line 347) - thanks Kathy
  • Solved an erroneous function call resulting in a failure to activate plugin (line 98)

1.5

  • Added time as well, not just date. Uses current time, so make sure your timezone settings are properly configured (Settings->General)
  • Made it work under 3.4.2
  • Complete rewrite of the codebase
  • Now uses builtin jquery-ui-datepicker (instead of outside file)
  • Replaced raw SQL queries with proper WP functions
  • Since I inherited the plugin, some problems might crop up again. Help me weed them out :)

1.4

  • Added fallback for users with older versions of jquery that don't have .on() function. Credit to Mark McLachlan for spotting this bug.
  • Cleaned up code to make it easier to read!
  • Put everthing into classes to tidy it up and the make it consistant with our other plugins
  • Worked on some future proofing
  • Put backward compatility for users using the esape_get_expiry_date() function so that it would work the same despite now being inside a class.
  • Minor Bug Fixes

1.3.5

  • Shortcode and function added for showing expiry date on front end.

1.2.2

  • jquery ui datepicker bug fixed

1.2.1

  • Fixed install and remove bug
  • Fixed date not showing in meta box bug

1.2

  • Allows the Selection of multiple post types
  • Uses WordPress Options API for the options page

1.1

  • Allows posts that have no expiry dates not to auto-expire

1.0

  • 1st Stable Version!

Requires: 3.0 or higher
Compatible up to: 3.8.3
Last Updated: 2014-2-14
Downloads: 13,014

Ratings

3 stars
3.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0 100,2,2 100,1,1
100,1,1
100,1,1
100,3,3 100,3,3
100,1,1
0,1,0
0,1,0 0,2,0 100,1,1 100,1,1 50,2,1
0,1,0
0,3,0
0,1,0
0,1,0