Linux 软件免费装
Banner图

ContentTimer — Content Expiry & Automation

开发者 muhammadsiddiqui
更新时间 2026年10月10日 12:34
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

redirect scheduled unpublish post expiry content expiry

下载

1.2.1 1.2.2

详情介绍:

ContentTimer schedules the end of a piece of content as easily as WordPress schedules its beginning. Set an expiry date on a post, choose what should happen when that moment arrives, and ContentTimer takes care of the rest — then records exactly what it did. Set it once. ContentTimer handles it automatically. What it does A worked example A "Summer Sale 2026" landing page should stop being reachable at midnight on 30 September.
  1. Open the page, set the expiry date and time in the ContentTimer panel
  2. Choose the Redirect action and enter /shop/
  3. Save
At midnight, ContentTimer redirects the page to /shop/ with a 301 and writes a log entry recording the result. Nothing else in your site changes. Expiry actions included Rules A rule applies an action to everything that matches it, so you do not have to touch each post. A rule can fire on a fixed date and time, or a set number of days after each item was published — useful for job listings, event pages and time-limited offers. Conditions narrow a rule down by post type, category or tag, author, or post status. Built to stay out of the way

安装:

  1. Upload the contenttimer folder to /wp-content/plugins/, or install through Plugins → Add New
  2. Activate ContentTimer through the Plugins screen
  3. Open ContentTimer → Settings and choose which content types to manage
  4. Set an expiry on a post, or create a rule under ContentTimer → Rules
No further configuration is required. Defaults are sensible for a typical site.

屏幕截图:

  • The Content screen: everything ContentTimer manages, filterable by expiry state.
  • Adding an expiry rule with conditions, an action and a schedule.
  • The expiry log, showing what ran, when, and whether it succeeded.
  • Settings, including which content types ContentTimer manages.

升级注意事项:

1.0.0 First release of ContentTimer.

常见问题:

Does ContentTimer delete my content?

No. The Move to Trash action uses the normal WordPress trash, from which content can be restored. Nothing is ever deleted permanently, and uninstalling the plugin never touches your posts or pages.

What happens if WP-Cron does not run?

Expiry runs on the next request that triggers WordPress cron. If DISABLE_WP_CRON is set on your site, ContentTimer says so on its dashboard, and you can either point a real server cron at wp-cron.php or use the Run Expiry Check button.

Can the same action run twice by mistake?

No. Each run takes a lock, each item's state is re-read immediately before the action runs, and every action checks whether the change is already in place. A repeated run records a "skipped" log entry instead of acting again.

I run my own store. How do I configure checkout and webhooks?

Add the relevant constants to wp-config.php. None are required for the free plugin to work: define( 'CONTENTTIMER_LS_STORE', 'yourstore' ); // yourstore.lemonsqueezy.com define( 'CONTENTTIMER_LS_VARIANT_MONTHLY', '123456' ); define( 'CONTENTTIMER_LS_VARIANT_YEARLY', '123457' ); define( 'CONTENTTIMER_LS_WEBHOOK_SECRET', 'your-signing-secret' ); define( 'CONTENTTIMER_LS_ENVIRONMENT', 'test' ); // omit for live The webhook URL is shown on the License tab once a signing secret is present.

Which timezone are the dates in?

The timezone configured in Settings → General. Dates are stored in UTC internally and converted for display, so daylight saving changes do not shift your schedules.

Where do redirects point?

Anywhere you like: a path on your own site such as /shop/, or a full https:// address. Destinations using any other scheme are rejected, and a destination that points back at the same content is refused so no redirect loop can be created.

Does it work with custom post types?

Yes. Every public custom post type registered by your theme or another plugin can be enabled from ContentTimer → Settings.

Will it slow down my site?

No. ContentTimer does no work on normal front-end requests. The only front-end code is the redirect check, which reads post meta WordPress has already loaded and adds no database query.

更新日志:

1.2.2 1.2.1 1.2.0 1.1.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0