
The expiration field in the block editor sidebar
WST Post Expiration adds an expiration date and time to your posts. Once that time passes, the post switches from published to draft automatically. It keeps announcements and campaign pages with a fixed run time from staying public after they are over.
The date is set where you already work: the block editor sidebar, the classic editor meta box, or Quick Edit on the post list. An “Expiration” column is added to the post list, so you can see at a glance which posts expire and when.
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.