| 开发者 | webtatsu |
|---|---|
| 更新时间 | 2026年9月30日 23:01 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
draft. The target status can be changed with the wst_post_expiration_new_status filterwst_post_expiration_new_status (filter), wst_post_expiration_expired (action), wst_post_expiration_settings_capability (filter)manage_options). Use the wst_post_expiration_settings_capability filter to change thiswp-cron.php from a server-side cron job makes it exact./wp-content/plugins/wst-post-expiration, or install it from the Plugins > Add New screen.Its status changes from published to draft. The content, the title, and everything else stay as they are.
Yes, with code. Return private, pending, trash, or any registered status from the wst_post_expiration_new_status filter.
trash goes through the standard WordPress trash handling. When the trash is disabled (EMPTY_TRASH_DAYS is 0), the post is kept as a draft instead of being deleted permanently.
Expiration runs through WP-Cron, which fires when someone visits the site. On a quiet site it waits for the next visit. Calling wp-cron.php from a server-side cron job removes the delay.
The site timezone (Settings > General). The date and time you enter is treated as local site time.
Yes. The "Enabled post types" setting lets you pick which post types can have an expiration date.
Every scheduled expiration event is removed. The dates stay on the posts, so activating the plugin again schedules them once more.