=== Schedule Post Changes: Unpublish, Delete, Change Status, Trash, Change Categories and Tags with PublishPress Future === Contributors: publishpress, kevinB, stevejburge, andergmartins Author: publishpress Author URI: https://publishpress.com Tags: unpublish posts, update posts, schedule changes, automatic changes, workflows Requires at least: 6.1 Requires PHP: 7.2.5 Tested up to: 6.6 License: GPLv2 or later Stable tag: 3.4.4 PublishPress Future can make scheduled changes to your content. You can unpublish posts, move posts to a new status, update the categories, and more. == Description == The PublishPress Future plugin allows you to schedule changes to posts, pages and other content types. With this plugin you can create automatic actions to unpublish, delete, trash, move a post to a new status and more. With the Pro version you can update your content using custom workflows with multiple steps and schedules. Here's an overview of what you can do with PublishPress Future: * Select future action dates in the right sidebar when you are editing a post. This makes it very easy to schedule changes to your content. * Receive email notifications when Future makes changes to your content. * Build Action Workflows that allow you to update your content using custom workflows with multiple steps and schedules (available in the Pro version). * Control post changes via integrations with Advanced Custom Fields and other plugins (available in the Pro version). ## PublishPress Future Pro ## > Upgrade to PublishPress Future Pro
> This plugin is the free version of the PublishPress Future plugin. The Pro version comes with all the features you need to schedule changes to your WordPress content. Click here to purchase the best plugin for scheduling WordPress content updates! ## Options for Future Actions on Posts With PublishPress Future, you can configure actions that will happen automatically to your content. Here are the changes you can choose for your posts: * 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. * Move the post to a custom status (available in the Pro version) [Click here for details on scheduling post changes](https://publishpress.com/knowledge-base/ways-to-expire-posts/). ## Custom Workflows to Schedule Content Changes With PublishPress Future Pro, you can build Action Workflows. These allow you to update your content using custom workflows with multiple steps and schedules. Here are some examples of what you can do with Action Workflows: * Email the site admin when a post is updated. * Change the post status to “Trash” a week after it was published. * 15 days after the post is published, move the post to the “Draft” status and add a new category. * 1 year after a post is published, send an email to the author asking them to check the content. [Click here for details on workflows for changes](https://publishpress.com/knowledge-base/workflows/). ## Display the Action Date in Your Content PublishPress Future allows you to place automatically show the expiry or action date inside your articles. The date will be added at the bottom of your post. [Click here to see the Footer Display options](https://publishpress.com/knowledge-base/footer-display/). 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](https://publishpress.com/knowledge-base/shortcodes-to-show-expiration-date/). ## Choose Actions Defaults for Post Types PublishPress Future can support any post type in WordPress. Go to Settings > PublishPress Future > Defaults and you can choose default actions for each post type. [Click here to see the default options](https://publishpress.com/knowledge-base/defaults-for-post-types/). ## PublishPress Future Email Notifications The PublishPress Future plugin can send you email notifications when your content is changed. You can control the emails by going to Settings > PublishPress Future > General Settings. [Click here to see the notification options](https://publishpress.com/knowledge-base/email-notifications/). ## Integrations With Other Plugins In PublishPress Future Pro it is possible to schedule changes to your posts based on metadata. This makes it possible to integrate PublishPress Future with other plugins. For example, you can create a date field in the Advanced Custom Fields plugin and use that to control the date for Future Actions. When you are using an integration, there are five types of data that you can update in PublishPress Future: * Action Status: This field specifies if the action should be enabled. * Action Date: This field stores the scheduled date for the action. * Action Type: This field stores the type of action that will be executed. * Taxonomy Name: The taxonomy name for being used when selecting terms. * Taxonomy Terms: A list of term's IDs for being used by the action. [Click here to see how to integrate Future with other plugins](https://publishpress.com/knowledge-base/metadata-scheduling/). ## Import the Future Actions PublishPress Future Pro supports imports from external data sources. You can import posts and automatically create Future Actions associated with those posts. The best approach is to use the Metadata Scheduling feature. If you're using a plugin such as WP All Import, you can match up the import tables with the fields you have selected in the Metadata Scheduling feature. [Click here to see how to import data for Future Actions](https://publishpress.com/knowledge-base/imports-and-metadata-scheduling/). ## Details on How Post Changes 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](https://publishpress.com/knowledge-base/scheduling-cron-jobs/). ## Logs for All Your Post Changes PublishPress Future Pro allows you to keep a detailed record of all the post updates. PublishPress Future records several key data points for all actions: * The post that the action was performed on. * Details of the post update. * When the change was made to the post. [Click here to see more about the logs feature](https://publishpress.com/knowledge-base/action-logs/). ## Join PublishPress and get the Pro plugins ## The Pro versions of the PublishPress plugins are well worth your investment. The Pro versions have extra features and faster support. [Click here to join PublishPress](https://publishpress.com/pricing/). Join PublishPress and you'll get access to these nine Pro plugins: * [PublishPress Authors Pro](https://publishpress.com/authors) allows you to add multiple authors and guest authors to WordPress posts. * [PublishPress Blocks Pro](https://publishpress.com/blocks) has everything you need to build professional websites with the WordPress block editor. * [PublishPress Capabilities Pro](https://publishpress.com/capabilities) is the plugin to manage your WordPress user roles, permissions, and capabilities. * [PublishPress Checklists Pro](https://publishpress.com/checklists) enables you to define tasks that must be completed before content is published. * [PublishPress Future Pro](https://publishpress.com/future) is the plugin for scheduling changes to your posts. * [PublishPress Permissions Pro](https://publishpress.com/permissions) is the plugin for advanced WordPress permissions. * [PublishPress Planner Pro](https://publishpress.com/publishpress) is the plugin for managing and scheduling WordPress content. * [PublishPress Revisions Pro](https://publishpress.com/revisions) allows you to update your published pages with teamwork and precision. * [PublishPress Series Pro](https://publishpress.com/series) enables you to group content together into a series Together, these plugins are a suite of powerful publishing tools for WordPress. If you need to create a professional workflow in WordPress, with moderation, revisions, permissions and more... then you should try PublishPress. = Bug Reports = Bug reports for PublishPress Future are welcomed in our [repository on GitHub](https://github.com/publishpress/publishpress-future). Please note that GitHub is not a support forum, and that issues that are not properly qualified as bugs will be closed. == Installation == This section describes how to install the plugin and get it working. 1. Unzip the plugin contents to the `/wp-content/plugins/post-expirator/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress == Screenshots == 1. You can select future action dates in the right sidebar when you are editing a post. This works with Gutenberg, the Classic Editor, and most page builder plugins. 2. You can modify action dates using the “Quick Edit” and “Bulk Edit” modes. This enables you to quickly add automatic actions to as many posts as you need. 3. PublishPress Future allows you to modify, remove or completely delete content when the scheduled date arrives. 4. The PublishPress Future plugin can send you email notifications when automatic actions happen on your content. 5. PublishPress Future allows you to choose action dates for post, pages, WooCommerce products, LearnDash classes, or any other custom post types. 6. PublishPress Future allows you to automatically show the scheduled date inside your articles. The action date will be added at the bottom of your post. You can also use shortcodes to show the action date and customize the output. 7. The PublishPress Future plugin creates a log of all the modified posts. This allows you to have a detailed record of all the automatic actions for your posts. 8. PublishPress Future Pro supports custom statuses such as those provided by WooCommerce. This means that Pro users can set their content to move to any status in WordPress. == Frequently Asked Questions == = Can I schedule changes to WooCommerce Products? = Yes, the PublishPress Future plugin allows you to schedule automatic changes to posts, pages and other content types including WooCommerce products. To enable this feature, go to Future > Post Types. Check the “Active” box in the “Product” area. [Click here for more details on WooCommerce changes](https://publishpress.com/knowledge-base/schedule-changes-woocommerce-products/) = Can I schedule changes to Elementor posts? = Yes, the PublishPress Future plugin allows you to schedule automatic changes to posts, pages and other content types including WooCommerce products. To enable this feature, go to Future > Post Types. Check the “Active” box for the post type you're using with Elementor. [Click here for more details on Elementor post changes](https://publishpress.com/knowledge-base/schedule-changes-elementor/) == Changelog == The full changelog can be found on [GitHub](https://github.com/publishpress/PublishPress-Future/blob/main/CHANGELOG.md). ## [3.4.4] - 21 Aug, 2024 ### Fixed - Improve notice message when scheduled action runs after pressing "run" (PR #896). - Fixed support for the Event Espresso plugin (PR #900). - Fixed React warning about createRoot being deprecated. - Fixed empty fieldset displayed when the bos is disabled for the post type (Issue #792). - Update language files. ### Changed - Add tabs for post types in the post types settings page (PR #895). ### Added - Added computed date preview to the general settings page (PR #897). - Added option to hide the calendar by default in the future action panel (PR #899). - Added new filter `publishpressfuture_posts_future_action_column_output` to the Future Action column. ## [3.4.3] - 06 Aug, 2024 ### Changed - Remove icon from the Future metabox in the block editor, #821 ### Fixed - Update translation files - Only load the quick-edit script if in the post list screen - Fix quick edit action box to use the filter to hide action box when deactivated for the post type, #884 - Fixed the database schema check to also check the debug log table, #887 - Fixed the database schema check to check the table indexes, #887 ## [3.4.2] - 15 Jul, 2024 ### Added - Add the current date and time to date preview in the date/time offset setting field, #840 ### Fixed - Optimized the date/time offset validation requests in the Post Types settings, #840 - Fix error message in the date/time offset setting field, #841 - Fix user capabilities check in the block editor, #727 - Update ES, FR, and IT translations, #859 ### Changed - Change the text in the promo screen for the Actions Workflow feature, #867 ## [3.4.1] - 02 Jul, 2024 ### Added - Implement add promo screen for Actions Workflows, #777 - Implement the post_id attribute to the futureaction shortcode, #814 ### Fixed - Fix some translations in ES, FR, and IT languages, #798 - Fix “no future actions” message in the scheduled actions list, #788 - Try to avoid fatal error for wrong argument counting - Minor issues pointed by PHPCS - Escape an exception message ### Changed - Update language files - Improve the exception message when the date/time offset is invalid - Update composer files for dev dependencies ## [3.4.0.1] - 20 Jun, 2024 ### Fixed - Fix fatal error for low level users when PublishPress menu is not available, #803 - Fix wrong action date on the future action panel, #802 ### Changed - The interface `PublishPress\Future\Modules\Expirator\Interfaces\ActionArgsModelInterface` has changed: - Method `setCronActionId` now returns void instead of `ActionArgsModelInterface` - Method `setPostId` now returns void instead of `ActionArgsModelInterface` - Method `setArgs` now returns void instead of `ActionArgsModelInterface` - Method `setArg` now returns void instead of `ActionArgsModelInterface` - Method `setCreatedAt` now returns void instead of `ActionArgsModelInterface` - Method `setEnabled` now returns void instead of `ActionArgsModelInterface` - Method `setScheduledDate` now returns void instead of `ActionArgsModelInterface` - Method `setScheduledDateFromISO8601` now returns void instead of `ActionArgsModelInterface` - Method `setScheduledDateFromUnixTime` now returns void instead of `ActionArgsModelInterface` - Method `convertUnixTimeDateToISO8601` is now public - Method `convertISO8601DateToUnixTime` is now public - Improve exception message when the date/time offset is invalid ## [3.4.0] - 20 Jun, 2024 ### Added - In the JS context, implemented a way to extend the future action panel using SlotFill `FutureActionPanelAfterActionField` and setting extra fields to the panel, right after the action field - Add a new filter to allow filtering the options of the future action being scheduled: `publishpressfuture_prepare_post_expiration_opts` - Add method `scheduleRecurringAction` to the `CronToWooActionSchedulerAdapter` to schedule recurring action - Add method `scheduleAsyncAction` to the `CronToWooActionSchedulerAdapter` to schedule async action - In the JS context, added the slot `FutureActionPanelTop` to the beginning of the future panel ### Changed - Added `$unique` and `$priority` arguments to the `scheduleSingleAction` method in the `CronToWooActionSchedulerAdapter` class - Method `scheduleRecurringAction` renamed to `scheduleRecurringActionInSeconds` in the `CronToWooActionSchedulerAdapter` class - Added argument `$clearOnlyPendingActions` to the method signature `clearScheduledAction` to the `CronInterface` interface - Changed the method `clearScheduledAction` in the class `CronToWooActionSchedulerAdapter` adding new argument `$clearOnlyPendingActions`, allowing to remove running actions - The plugin activation and deactivation callback functions were moved from the main file to independent files - Change the admin menu names for clarity - Update the promo sidebar for mentioning the Actions Workflow feature ### Fixed - Fix error when quick-edit data is not available, #730 - Fix dependency of the enqueued scripts for the future action box. Add 'wp-i18n', 'wp-components', 'wp-url', 'wp-data', 'wp-api-fetch', 'wp-element', 'inline-edit-post', 'wp-html-entities', 'wp-plugins' as dependencies - Updated ES, FR and IT translations, #698 - Redirects to the settings page after activating the plugin, #764 - Fix access to the View Debug settings tab when debug is disabled - Fix the position of the "Upgrade to Pro" and "Settings" menu items in the admin bar