PublishPress Future: Automatically Unpublish WordPress Posts

Descrizione

Il plugin PublishPress Future ti permette di aggiungere una data di scadenza agli articoli, alle pagine e ad altri tipi di contenuti. Quando la pubblicazione del tuo articolo viene automaticamente annullata, è possibile eliminarlo, modificarne lo stato o aggiornarne le categorie.

Ecco una panoramica di cosa puoi fare con PublishPress Future:

  • Scegliere la data di scadenza per i contenuti di ciascun tipo di contenuto.
  • Selezionare le date di scadenza nella barra laterale di destra durante la modifica degli articoli.
  • Modifica, rimozione o eliminazione completa dei contenuti quando arriva la data di scadenza.
  • Modificare la data di scadenza tramite le opzioni “Modifica rapida” e “Azioni di gruppo”.
  • Ricevere notifiche via email alla scadenza dei contenuti.
  • Mostrare la data di scadenza nei tuoi contenuti sia automaticamente che con gli shortcode.

Opzioni per gli articoli in scadenza

Quando gli articoli scadono, è possibile apportare ai contenuti queste modifiche:

  • Cambiare lo stato a “Bozza”.
  • Eliminare gli articoli.
  • Cestinare gli articoli.
  • Cambiare lo stato in “Privato”
  • Abilitare l’opzione “Metti in evidenza in alto nel blog”.
  • Disabilitare l’opzione “Metti in evidenza in alto nel blog”.
  • Eliminare tutte le categorie esistenti e aggiungere delle nuove categorie.
  • Mantenere tutte le categorie esistenti e aggiungere delle nuove categorie.
  • Mantenere tutte le categorie esistenti tranne quelle specificate in questa modifica.

Fai clic qui per conoscere i dettagli sulla scadenza degli articoli.

Visualizzare la data di scadenza nei contenuti

PublishPress Future ti permette di inserire automaticamente la data di scadenza all’interno degli articoli. La scadenza viene inserita in fondo all’articolo.

Fai clic qui per conoscere le opzioni per la visualizzazione del footer.

Puoi inserire gli shortcode per mostrare la data di scadenza all’interno degli articoli. Puoi personalizzare la visualizzazione degli shortcode con le diverse opzioni di formattazione.

Fai clic qui per conoscere le opzioni degli shortcode.

Scadenze predefinite per i tipi di contenuto

PublishPress Future è compatibile con tutti i tipi di contenuto di WordPress. Vai su Future > Tipi di contenuto e puoi scegliere le opzioni di scadenza predefinite per ogni tipo di contenuto.

Fai clic qui per conoscere le opzioni predefinite.

PublishPress Future notifiche via email

Il plugin PublishPress Future può inviare notifiche via e-mail quando i contenuti non vengono pubblicati. È possibile controllare le email andando sul menu laterale e fare clic su Future > Impostazioni generali.

Fai clic qui per conoscere le opzioni di notifica.

Dettagli sul funzionamento della scadenza degli articoli

Per ogni evento di scadenza, viene programmato un cron job personalizzato. Ciò può contribuire a ridurre il sovraccarico del server per i siti molto trafficati. Questo plugin richiede che WP-CRON sia configurato e funzionante sul tuo webhost. Alcuni host non lo supportano, pertanto si consiglia di controllare e confermare se si riscontrano problemi nell’utilizzo del plugin.

Fai clic qui per conoscere i dettagli di questo plugin.

Screenshot

  • Aggiungere una data di scadenza a un articolo
  • Visualizzazione delle date di scadenza nella schermata panoramica degli articoli
  • Schermata impostazioni

Installazione

Questa sezione descrive come installare e far funzionare il plugin.

  1. Scompattare il contenuto del plugin nella directory /wp-content/plugins/post-expirator/
  2. Attivare il plugin tramite il menu “Plugin” di WordPress

Recensioni

21 Settembre 2022
Works exactly as it should - and adds some other nice features as well. Now my clients don't have to write themselves reminders of when to pull stale-dated posts from their websites.
27 Agosto 2022
I needed an easy solution to automatically set custom post type events to draft... this does it! Works perfectly, it detected my CPTs and I was able to set what I need with ease. In this case, it's hiding concerts after the date of the show from an "upcoming concerts" page. Easy. Love it.
3 Luglio 2022
Been using this for some time to expire announcements. Works very well.
Leggi tutte le recensioni di 124

Contributi e sviluppo

“PublishPress Future: Automatically Unpublish WordPress Posts” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“PublishPress Future: Automatically Unpublish WordPress Posts” è stato tradotto in 16 lingue. Grazie ai traduttori per i loro contributi.

Traduci “PublishPress Future: Automatically Unpublish WordPress Posts” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

[2.7.7] – 14 Jul, 2022

  • ADDED: Add post meta “expiration_log” with expiration log data when post expires;
  • FIXED: Can’t bulk edit posts if hour or minutes are set to 00, #273;
  • FIXED: When the post expires to draft we don’t trigger the status transition actions, #264;

[2.7.6] – 13 Jun, 2022

  • FIXED: Fix fatal error on cron if debug is not activated, #265;

[2.7.5] – 09 Jun, 2022

  • FIXED: Fix undefined array key “hook_suffix” warning, #259;
  • FIXED: Double email sending bug confirmed bug, #204;

[2.7.4] – 07 Jun, 2022

  • CHANGED: Add library to protect breaking site when multiple instances of the plugin are activated;
  • CHANGED: Invert order of the debug log, showing now on ASC order;
  • CHANGED: Make bulk edit date fields required, #256;
  • FIXED: Fix unlocalized string on the taxonomy field (Thanks to Alex Lion), #255;
  • FIXED: Fix default taxonomy selection for Post Types in the settings, #144;
  • FIXED: Fix typo in the hook name ‘postexpirator_schedule’ (Thanks to Nico Mollet), #244;
  • FIXED: Fix bulk editing for WordPress v6.0, #251;
  • FIXED: Fix the Gutenberg panel for custom post types created on PODS in WordPress v6.0, #250;

[2.7.3] – 27 Jan 2022

  • FIXED: Fix the selection of categories when setting a post to expire, #220;

[2.7.2] – 25 Jan 2022

  • ADDED: Added the event GUID as tooltip to each post in the Current Cron Schedule list on the Diagnostics page, #214;
  • CHANGED: Added more clear debug message if the cron event was not scheduled due to an error;
  • CHANGED: Refactored the list of cron schedules in the Diagnostics tab adding more post information, #215;
  • CHANGED: Removed the admin notice about the plugin renaming;
  • FIXED: Fix the Expires column in the posts page correctly identifying the post ID on cron event with multiple IDs, #210;
  • FIXED: Fix wrong function used to escape a html attributes on a setting page;
  • FIXED: Fix missed sanitization for some data on admin pages;
  • FIXED: Fix some false positives given by PHPCS;
  • FIXED: Fix expiration data processing avoid to process for deactivated posts;
  • FIXED: Fix a typo in the diagnostics settings tab;
  • FIXED: Fix the checkbox state for posts that are not set to expire, #217;

[2.7.1] – 12 Jan 2022

  • ADDED: Add visual indicator to the cron event status in the settings page, #155;
  • ADDED: Add small help text to the Expires column icon to say if the event is scheduled or not;
  • ADDED: Add additional permission check before loading the settings page;
  • ADDED: Add CLI command to expire a post, #206;
  • CHANGED: Remove the plugin description from the settings page, #194;
  • CHANGED: Deprecated a not used function called “expirationdate_get_blog_url”;
  • CHANGED: Updated the min required WP to 5.3 due to the requirement of using the function ‘wp_date’;
  • FIXED: Fix PHP error while purging the debug log, #135;
  • FIXED: Fix composer’s autoloader path;
  • FIXED: Code cleanup. Removed comments and dead code;
  • FIXED: Fixed the block for direct access to view files;
  • FIXED: Added check for is_admin before checking if the user has permission to see the settings page;
  • FIXED: Avoid running sortable column code if not in the admin;
  • FIXED: Cross-site scripting (XSS) was possible if a third party allowed html or javascript into a database setting or language file;
  • FIXED: Fix the URL for the View Debug Log admin page, #196;
  • FIXED: Removed unopened span tag from a form;
  • FIXED: Added a secondary admin and ajax referer check when saving expiration post data;
  • FIXED: Fix the option “Preserve data after deactivating the plugin” that was not saving the setting, #198;
  • FIXED: Fix the post expiration function to make sure a post is not expired if the checkbox is not checked on it, #199;
  • FIXED: Fix the post expiration meta not being cleanup after a post expires, #207;
  • FIXED: Fix the post expiration checkbox status when post type is set configured to check it by default;

[2.7.0] – 02 Dec 2021

  • ADDED: Add new admin menu item: Future, #8;
  • CHANGED: Rename the plugin from Post Expirator to PublishPress Future, #14;
  • CHANGED: Add the PublishPress footer and branding, #68;
  • CHANGED: Separate the settings into different tabs, #97, #98;
  • CHANGED: Rename the “General Settings” tab to “Default”, #99;
  • FIXED: Fix the 1hr diff between expiration time when editing and shown in post list, #138;
  • FIXED: Post Expirator is adding wrong expiry dates to old posts, #160;
  • FIXED: Post Expirator is setting unwanted expire time for posts, #187;

[2.6.3] – 18 Nov 2021

  • ADDED: Add setting field for choosing between preserve or delete data when the plugin is deactivated, #137;
  • FIXED: Fix the timezone applied to time fields, #134;
  • FIXED: Add the timezone string to the time fields, #134;
  • FIXED: Fix the selected expiring categories on the quick edit panel, #160;
  • FIXED: Fix E_COMPILER_ERROR when cleaning up the debug table, #183;
  • FIXED: Fix translation and localization of date and time, #150;

[2.6.2] – 04 Nov 2021

  • FIXED: Fix fatal error: Call to a member function add_cap() on null, #167;
  • FIXED: Fix hierarchical taxonomy selection error for multiple taxonomies, #144;
  • FIXED: Fix PHP warning: use of undefined constant – assumed ‘expireType’, #617;
  • FIXED: Fix translation of strings in the block editor panel, #163;
  • FIXED: Fix category not being added or removed when the post expires, #170;
  • FIXED: Fix PHP notice: Undefined variable: merged, #174;
  • FIXED: Fix category-based expiration for custom post types in classic editor, #179;
  • FIXED: Fix expiration date being added to old posts when edited, #168;

[2.6.1] – 27 Oct 2021

  • ADDED: Add post information to the scheduled list for easier debugging, #164;
  • ADDED: Add a review request after a specific period of usage, #103;
  • ADDED: Improve the list of cron tasks, filtering only the tasks related to the plugin, #153;
  • FIXED: Fix category replace not saving, #159;
  • FIXED: Fix auto enabled settings, #158;
  • FIXED: Fix expiration data and cron on Gutenberg style box, #156, #136;
  • FIXED: Fix the request that loads categories in the Gutenberg style panel, #133;
  • FIXED: Fix the category replace not working with the new Gutenberg style panel, #127;
  • FIXED: Fix the default options for the Gutenberg style panel, #145;

[2.6.0] – 04 Oct 2021

  • ADDED: Add specific capabilities for expiring posts, #141;

[2.5.1] – 27 Sep 2021

  • FIXED: Default Expiration Categories cannot be unset, #94;
  • FIXED: Tidy up design for Classic Editor version, #83;
  • FIXED: All posts now carry the default expiration, #115;
  • FIXED: Error with 2.5.0 and WordPress 5.8.1, #110;
  • FIXED: Do not show private post types that don’t have an admin UI, #116;

[2.5.0] – 08 Aug 2021

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

[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;
  • CHANGED: Bulk and Quick Edit boxes default to current date/year, #46;
  • FIXED: Default expiry duration is broken for future years, #39;
  • FIXED: Translation bug, #5;
  • FIXED: Post expiring one year early, #24;

[2.4.2]

  • 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;

[2.4.1]

  • FIXED: Updated deprecated .live jQuery reference.

[2.4.0]

  • FIXED: Fixed PHP Error with PHP 7.

[2.3.1]

  • FIXED: Fixed PHP Error that snuck in on some installations.

[2.3.0]

  • ADDED: Email notification upon post expiration. A global email can be set, blog admins can be selected and/or specific users based on post type can be notified.
  • ADDED: Expiration Option Added – Stick/Unstick post is now available.
  • ADDED: Expiration Option Added – Trash post is now available.
  • ADDED: Added custom actions that can be hooked into when expiration events are scheduled / unscheduled.
  • FIXED: Minor HTML Code Issues

[2.2.2]

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

[2.2.1]

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

[2.2.0]

  • ADDED: Quick Edit – setting expiration date and toggling post expiration status can now be done via quick edit.
  • ADDED: Bulk Edit – changing expiration date on posts that already are configured can now be done via bulk edit.
  • ADDED: Added ability to order by Expiration Date in dashboard.
  • ADDED: Adjusted formatting on defaults page. Multiple post types are now displayed cleaner.
  • FIXED: Minor Code Cleanup

[2.1.4]

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

[2.1.3]

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

[2.1.2]

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

[2.1.1]

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

[2.1.0]

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

[2.0.1]

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

[2.0.0]

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

RELEASE NOTE: This is a major update of the core functions of this plugin. All current plugins and settings should be upgraded to the new formats and work as expected. Any posts currently schedule to be expirated in the future will be automatically upgraded to the new format.

[1.6.2]

  • ADDED: 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: Fixed missing global call for MS installs

[1.6.1]

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

[1.6]

  • ADDED: Added debugging
  • CHANGED: Replaced “Upgrade” tab with new “Diagnostics” tab
  • CHANGED: Various code cleanup
  • FIXED: Fixed invalid html
  • FIXED: Fixed i18n issues with dates
  • FIXED: Fixed problem when using “Network Activate” – reworked plugin activation process
  • FIXED: Reworked expire logic to limit the number of sql queries needed

[1.5.4]

  • CHANGED: Cleaned up deprecated function calls

[1.5.3]

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

[1.5.2]

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

[1.5.1]

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

[1.5]

  • CHANGED: Moved Expirator Box to Sidebar and cleaned up meta code
  • ADDED: Added ability to expire post to category

[1.4.3]

  • FIXED: Fixed issue with 3.0 multisite detection

[1.4.2]

  • ADDED: Added post expirator POT to /languages folder
  • FIXED: Fixed issue with plugin admin navigation
  • FIXED: Fixed timezone issue on plugin options screen

[1.4.1]

  • ADDED: Added support for custom post types (Thanks Thierry)
  • ADDED: Added i18n support (Thanks Thierry)
  • FIXED: Fixed issue where expiration date was not shown in the correct timezone in the footer
  • FIXED: Fixed issue where on some systems the expiration did not happen when scheduled

[1.4]

  • FIXED: Fixed compatability issues with WordPress – plugin was originally coded for WPMU – should now work on both
  • ADDED: Added ability to schedule post expiration by minute
  • FIXED: Fixed timezone – now uses the same timezone as configured by the blog

RELEASE 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.

[1.3.1]

  • FIXED: Fixed sporadic issue of expired posts not being removed

[1.3]

  • FIXED: Expiration date is now retained across all post status changes
  • FIXED: Modified date/time format options for shortcode postexpirator tag
  • ADDED: Added the ability to add text automatically to the post footer if expiration date is set

[1.2.1]

  • FIXED: Fixed issue with display date format not being recognized after upgrade

[1.2]

  • CHANGED: wording from “Expiration Date” to “Post Expirator” and moved the configuration options to the “Settings” tab.
  • ADDED: Added shortcode tag [postexpirator] to display the post expiration date within the post
  • ADDED: Added new setting for the default format
  • FIXED: Fixed bug where expiration date was removed when a post was auto saved

[1.1]

  • FIXED: Expired posts retain expiration date

[1.0]

  • ADDED: Initial Release