Post Expirator: Automatically Unpublish WordPress Posts


The Post Expirator plugin allows you to add an expiration date to posts. pages and other content type. When your post is automatically unpublished, you can delete the post, change the status, or update the post categories.

Here’s an overview of what you can do with Post Expirator:

  • Choose expiry dates for content in any post type.
  • Select expiry dates in the right sidebar when editing posts.
  • Modify, remove or completely delete content when the expiry date arrives.
  • Modify expiry dates using “Quick Edit” and “Bulk Edit”.
  • Receive email notifications when your content expires.
  • Show expiry dates in your content, automatically or with shortcodes.

Options for Expiring Posts

When your posts expire, you can perform these changes on your content:

  • Change the status to “Draft”.
  • Delete the post.
  • Send the post to the Trash.
  • Change the status to “Private”.
  • Enable the “Stick to the top of the blog” option.
  • Disable the “Stick to the top of the blog” option.
  • Remove all existing categories, and add new categories.
  • Keep all existing categories, and add new categories.
  • Keep all existing categories, except for those specified in this change.

Click here for more details on expiring posts.

Display the Expiry Date in Your Content

Post Expirator allows you to place automatically show the expiry date inside your articles. The expiry will be added at the bottom of your post.

Click here to see the Footer Display options.

You can use shortcodes to show the expiration date inside your posts. You can customize the shortcode output with several formatting options.

Click here to see the shortcode options.

Expiry Defaults for Post Types

Post Expirator can support any post type in WordPress. Go to Settings > Post Expirator > Defaults and you can choose default expiry options for each post type.

Click here to see the default options.

Post Expirator Email Notifications

The Post Expirator plugin can send you email notifications when your content is unpublished. You can control the emails by going to Settings > Post Expirator > General Settings.

Click here to see the notification options.

Details on How Post Expiry Works

For each expiration event, a custom cron job is scheduled. This can help reduce server overhead for busy sites. This plugin REQUIRES that WP-CRON is setup and functional on your webhost. Some hosts do not support this, so please check and confirm if you run into issues using the plugin.

Click here to see the technical details for this plugin.

Snimke zaslona

  • Dodavanje datum isteka objavi
  • Viewing the expiration dates on the post overview screen
  • Postavke zaslona


Ovaj odlomak opisuje kako instalirati dodatak i i kako ga natjerati da radi.

  1. Raspakirajte sadržaj dodataka na /wp-content/plugins/post-expirator/ directory
  2. Aktiviraj plugin kroz “Plugin” meni u WordPress-u


17. rujna 2021.
Love it! Wished for the longest time that there was something like this and now I found it!
23. rujna 2021.
Évents calendar with post expirator resolved thanks
15. srpnja 2021.
This is a great plugin for us. We have several authors, lots of categories, and many posts which are time-limited. It keeps everything current and moves it to alternative categories or deletes it as time goes on. Excellent support after reporting a minor glitch: Workaround found immediately and problem fixed in a few days. Highly recommended.
06. svibnja 2021.
An addition I would be grateful for is: Setting a default time per posts (in the defaults) For the rest awesome! Working perfectly.
Pročitajte svih 97 recenzija

Suradnici i Programeri

“Post Expirator: Automatically Unpublish WordPress Posts” is open source software. The following people have contributed to this plugin.


“Post Expirator: Automatically Unpublish WordPress Posts” je prijeveden na 14 dijalekata. Zahvala prevodiocima za njihov doprinos.

Prevedite “Post Expirator: Automatically Unpublish WordPress Posts” na svoj jezik.

Zainteresirani ste za razvoj?

Pregledajte kôd, pogledajte SVN spremišteili se pretplatite na dnevnik razvoja od RSS.

Dnevnik promjena

[2.5.0] – 08 Aug 2021

  • Fixed: Appearance Widgets screen shows PHP Notice, #92;
  • Fixed: Stop the Post Expirator box from appearing in non-public post types, #78;
  • Added: Add “How to Expire” to Quick Edit, #62;
  • Changed: Settings UI enhancement, #14;
  • Fixed: Hide metabox from Media Library files, #56;
  • Added: Support for Gutenberg block editor, #10;
  • Added: Set a default time per post type, #12;

[2.4.4] – 22 Jul 2021

  • Fixed: Fix conflict with the plugin WCFM, #60;
  • Fixed: Fix the Category: Remove option, #61;

[2.4.3] – 07 Jul 2021

  • Added: Expose wrappers for legacy functions, #40;
  • Added: Support for quotes in Default expiry, #43;
  • Fixed: Default expiry duration is broken for future years, #39;
  • Fixed: Translation bug, #5;
  • Fixed: Post expiring one year early, #24;
  • Changed: Bulk and Quick Edit boxes default to current date/year, #46;


  • Fixed: Bulk edit does not change scheduled event bug, #29;
  • Fixed: Date not being translated in shortcode, #16;
  • Fixed: Bulk Edit doesn’t work, #4;


  • Fix: Updated deprecated .live jQuery reference.


  • Fix: Fixed PHP Error with PHP 7.


  • Popravak: popravite pogrešku u PHP-u koja se pojavila na nekim instalacijama.


  • Novo: obavijest e-poštom po isteku objave. Globalna e-pošta može se postaviti, administratori bloga mogu biti odabrani i / ili se mogu obavijestiti određeni korisnici na temelju vrste objave.
  • Novo: opcija isteka dodana – zalijepi/odlijepi objavu sada je dostupno
  • Novo: opcija isteka dodana – smeće objava sada je dostupno
  • New: Added custom actions that can be hooked into when expiration events are scheduled / unscheduled.
  • Fix: Minor HTML Code Issues


  • Fix: Quick Edit did not retain the expire type setting, and defaulted back to “Draft”. This has been resolved.


  • Fix: Fixed issue with bulk edit not correctly updating the expiration date.


  • New: Quick Edit – setting expiration date and toggling post expiration status can now be done via quick edit.
  • Novo: Skupno uređivanje – mijenjanje datuma isteka na postovima koji su već konfigurirani sada se može obaviti putem skupnog uređivanja.
  • Novo: dodano je mogućnost narudžbe prema datumu isteka u nadzornoj ploči.
  • Novo: prilagođeno oblikovanje na stranici s zadanim postavkama. Više vrsta postova sada se prikazuje čišće.
  • Fix: Minor Code Cleanup


  • Fix: PHP Strict errors with 5.4+
  • Fix: Removed temporary timezone conversion – now using core functions again


  • Fix: Default category selection now saves correctly on default settings screen


  • Security: Added form nonce for protect against possible CSRF
  • Security: Fixed XSS issue on settings pages
  • New: Added check to show if WP_CRON is enabled on diagnostics page
  • Fix: Minor Code Cleanup


  • New: Added the option to disable post expirator for certain post types if desired
  • Fix: Fixed php warning issue cause when post type defaults are not set


  • New: Added support for hierarchical custom taxonomy
  • New: Enhanced custom post type support
  • Fix: Updated debug function to be friendly for scripted calls
  • Fix: Change to only show public custom post types on defaults screen
  • Fix: Removed category expiration options for ‘pages’, which is currently unsupported
  • Fix: Some date calls were getting “double” converted for the timezone pending how other plugins handled date – this issue should now be resolved


  • Removes old scheduled hook – this was not done completely in the 2.0.0 upgrade
  • Old option cleanup


Ovo je glavno ažuriranje ključnih funkcija ovog plugin-a. Svi trenutni plugin-ovi i postavke treba nadograditi na nove formate i raditi prema očekivanjima. Sve objave koje su trenutno određene da će isteći biti će automatski ažurirane na novi format.

  • New: Improved debug calls and logging
  • New: Added the ability to expire to a “private” post
  • New: Added the ability to expire by adding or removing categories. The old way of doing things is now known as replacing categories
  • New: Revamped the expiration process – the plugin no longer runs on an minute, hourly, or other schedule. Each expiration event schedules a unique event to run, conserving system resources and making things more efficient
  • New: The type of expiration event can be selected for each post, directly from the post editing screen
  • New: Ability to set defaults for each post type (including custom posts)
  • New: Renamed expiration-date meta value to _expiration-date
  • New: Revamped timezone handling to be more correct with WordPress standards and fix conflicts with other plugins
  • New: ‘Expires’ column on post display table now uses the default date/time formats set for the blog
  • Fix: Removed kses filter calls when then schedule task runs that was causing code entered as unfiltered_html to be removed
  • Fix: Updated some calls of date to now use date_i18n
  • Fix: Most (if not all) php error/warnings should be addressed
  • Fix: Updated wpdb calls in the debug class to use wpdb_prepare correctly
  • Fix: Changed menu capability option from “edit_plugin” to “manage_options”


  • Added the ability to configure the post expirator to be enabled by default for all new posts
  • Changed some instances of mktime to time
  • Fixed missing global call for MS installs


  • Tweaked error messages, removed clicks for reset cron event
  • Switched cron schedule functions to use “current_time(‘timestamp’)”
  • Cleaned up default values code
  • Added option to allow user to select any cron schedule (minute, hourly, twicedaily, daily) – including other defined schedules
  • Added option to set default expiration duration – options are none, custom, or publish time
  • Code cleanup – php notice


  • Popravljen nevažeći html
  • Popravljen i18n problem sa datumima
  • Fixed problem when using “Network Activate” – reworked plugin activation process
  • Replaced “Upgrade” tab with new “Diagnostics” tab
  • Reworked expire logic to limit the number of sql queries needed
  • Added debugging
  • Various code cleanup


  • Cleaned up deprecated function calls


  • Fixed bug with sql expiration query (props to Robert & John)


  • Fixed bug with shortcode that was displaying the expiration date in the incorrect timezone
  • Fixed typo on settings page with incorrect shortcode name


  • Fixed bug that was not allow custom post types to work


  • Expirator box pomaknut u siderbar i počišćen je meta kod
  • Dodana mogućnost isteka objava u kategoriji


  • Popravljen problem sa 3.0 multisite otkrivanjem


  • Dodan post expirator POT u /jezik spremnik
  • Popravljen problem sa plugin admin navigacijom
  • Popravljen problem vremenskih zona na zaslonu plugin opcija


  • Dodana je podrška za vrste prilagođenih objava (Thanks Thierry)
  • Dodana je i18n podrška (Thanks Thierry)
  • Popravljen problem gdje se datum nije prikazivao u točnoj vremenskoj zoni u podnožju
  • Popravljen problem gdje se na nekim sustavima istek nije dogodio kada je određen


NOTE: After upgrading, you may need to reset the cron schedules. Following onscreen notice if prompted. Previously scheduled posts will not be updated, they will be deleted referncing the old timezone setting. If you wish to update them, you will need to manually update the expiration time.

  • Popravljen problem s kompatibilnošću s WordPress-om – plugin je izvorno kodiran za WPMU – sada bi trebao raditi na oba
  • Dodana je sposobnost zakazivanja isteka roka po minuti
  • Popravljena vremenska zona – sada se koristi ista vremenska zona kao ona konfigurirana od strane bloga


  • Popravljen sporadičan problem gdje se istekle objave ne brišu


  • Datum isteka je sada zadržan preko svih izmjena statusa objava
  • Izmjenjen format opcija datuma/vremena za kratki kod postexpirator oznaku
  • Dodana mogućnost za automatsko dodavanje teksta u podnožje objave ako je datum isteka postavljen


  • Popravljen problem sa prikazom formata datuma koji se ne prepoznaje nakon nadogradnje


  • Izmjenjen naziv iz “Datum isteka” u “Post Expirator” i opcije konfiguracije su premještene u karticu “Opcije”
  • Added shortcode tag [postexpirator] to display the post expiration date within the post
    ** Added new setting for the default format
  • Popravljen problem gdje se datum isteka briše kada se objava automatski spremi


  • Objave koje su istekle zadržavaju datum isteka


  • Prvo izdanje