Linux 软件免费装
Banner图

Content Unpublisher

开发者 skldrth
更新时间 2026年10月25日 23:22
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

custom post types schedule expiry trash unpublish

下载

1.1 1.2 1.4 1.0

详情介绍:

Content Unpublisher lets you schedule a date and time for posts, pages or custom post types to automatically: If you find this plugin useful, you can buy me a coffee. Features: To schedule many items at once, select them in the Posts list, choose Bulk actions > Edit, set Unpublish to "Schedule…" and pick a date and action. To change or remove a single schedule, use Quick Edit, the editor, or the overview page.

安装:

  1. In WordPress, go to Plugins > Add New, search for "Content Unpublisher" and click Install Now. Or upload the plugin folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen.
  3. Posts and pages are enabled right away. To use it on custom post types such as events or job listings, enable them under Content Unpublisher > Settings.
  4. Open any post and set a date next to "Unpublish" in the Summary panel (or in the Unpublish Settings box in the Classic Editor).
  5. Optional: on low-traffic sites, set up a real server cron job so actions run exactly on time (see the FAQ).

屏幕截图:

  • Classic Editor: the Unpublish Settings box with date presets and Draft / Trash choice.
  • Posts list: scheduled items show "To draft on …", an optional sortable Unpublish column, and Quick Edit support.
  • Overview: all scheduled actions with relative dates, filters by action and post type, sorting and bulk removal.
  • History: the last 50 actions Content Unpublisher has carried out.
  • Settings: choose which post types get the unpublish options.

升级注意事项:

1.4 Adds block editor support, date presets, Quick/Bulk Edit and a much improved overview. 1.3 Adds support for custom post types. Enable them under Content Unpublisher > Settings. 1.2 Adds an optional donation link. No functional changes. 1.1 Fixes a timezone bug in scheduling and adds compatibility with WordPress 7.1. Recommended for all users. 1.0 First stable version

常见问题:

Does this use WP Cron?

Yes, it uses WordPress's built-in scheduling system to run unpublish tasks. WP-Cron runs when someone visits the site, so on quiet sites an action can run a little late. The overview warns you when actions are overdue; a real server cron job makes them run on time.

How do I make actions run exactly on time?

Add define( 'DISABLE_WP_CRON', true ); to wp-config.php and let your host call https://your-site.com/wp-cron.php every 5 minutes with a server cron job. Most hosts have a "Cron jobs" screen for this. Without it, actions run on the first visit after their scheduled time.

Where do I see what happened to a post?

Open Content Unpublisher > Overview and click History for the last 50 executed actions. A post that was changed to Draft also shows a note in the editor saying when and why.

Which timezone is used?

The date and time you enter use the timezone configured under Settings > General.

Does it work with custom post types?

Yes. Posts and pages are enabled by default. Enable other public post types, such as events or job listings, under Content Unpublisher > Settings. Developers can also change the list with the contun_post_types filter.

Is "Trash" always reversible?

Normally yes. If your site sets EMPTY_TRASH_DAYS to 0, WordPress has no trash and the item is deleted permanently instead.

Can I remove a scheduled unpublish?

Yes: from the edit screen, from Quick Edit or Bulk Edit in the Posts list, or from the overview page (one at a time or in bulk).

更新日志:

1.4 1.3 1.2 1.1 1.0