Schedule Terms

وەسف

Schedule Terms lets you reserve a date and time for a category, tag, or any other taxonomy term to be attached to or detached from a post, instead of editing the post manually when the time comes.

It’s useful for things like:

  • Featuring a post in a “Sale” or “Campaign” category only during a specific period, and removing it automatically afterwards.
  • Adding a “New” tag to a post for a limited time after publishing.
  • Hiding a post from a “Featured” listing taxonomy once a promotion ends.

Once scheduling is enabled for a term, the “Schedule Terms” panel in the post editor shows that term with separate “Add” and “Remove” date/time fields. WordPress’ own cron system checks the schedule and updates the post’s terms automatically when the time arrives, so there’s nothing else to do once a schedule is set.

Usage

  1. Go to the category, tag, or custom taxonomy management screen.
  2. When adding or editing a term (or via Quick Edit), check “Allow this term to be added to or removed from posts on a schedule.” under “Scheduling”.
  3. Open a post in the block editor and find the “Schedule Terms” panel in the document sidebar.
  4. Set the “Add” date/time to have the term automatically added to the post at that time, and/or the “Remove” date/time to have it automatically removed.
  5. Save or update the post. The term will be attached/detached automatically once the scheduled time passes.

FAQ

Does the term get attached/detached even if I don’t edit the post again?

Yes. Scheduling is handled by WordPress cron, so the post doesn’t need to be opened or saved again after the schedule is set.

What happens if I leave both the “Add” and “Remove” fields empty?

Nothing is scheduled for that term on that post; the term is only added or removed when you do so manually, as usual.

Can I use this with a custom taxonomy?

Yes, scheduling can be enabled for any taxonomy that is shown in the admin UI (show_ui is true), not just categories and tags.

Credits

سکرین شۆتەکان

پێداچوونەوەکان

هیچ پێداچوونەوەیەک نەنووسراوە بۆ ئەم پێوەکراوە.

بەشداربووان و گەشەپێدەران

“Schedule Terms” نەرمەواڵەیەکی سەرچاوە کراوەیە. ئەم کەسانەی خوارەوە بەشدارییان تێدا کردووە.

بەشداربووان

“Schedule Terms” وەرگێڕدراوە بۆ 1 زمان. سوپاسی وەرگێڕەکان دەکەین بۆ بەشداریکردنیان.

“Schedule Terms” وەربگێڕە بۆ زمانەکەی خۆت.

دەتەوێت بەشداربیت لە گەشەپێدان؟

گەڕان لە کۆدەکەدا بکە، سەیری تەمارگەی (SVN) بکە، یان بەشداربە لە ڕووداوتۆماری گەشەپێدان لە ڕێگەی (RSS).

ڕووداوتۆمارگەریی گۆڕین

2.1.0

  • Fix the scheduled time shown in the post editor when the browser and the site are in different timezones.
  • Update dependencies.
  • Requires WordPress 6.8 or later.
  • Tested up to WordPress 7.1.
  • Improve the wording of the admin UI: the post editor now uses “Add” and “Remove” instead of “Attach” and “Detach”.
  • Fix the text domain of the term screen strings so that they can be translated.

2.0.0

  • Tested WordPress 7.0.
  • Drop support for PHP 8.1.
  • Renamed the internal PHP namespace from HAMWORKS\WP\Schedule_Terms to Torounit\WP\Schedule_Terms (old class names are aliased for backward compatibility and will be removed in a future major release).

1.3.0

  • Tested WordPress 6.5.
  • Update packages.
  • Add reset button.

1.2.2

  • Load translation.
  • Fix DateTimePicker format.

1.2.0

  • fix ui.

1.1.2

  • Bug fix.

1.0.2

  • fix ci.

1.0.0

  • First release.