interactive-one/expiring-posts

Installs: 4 138

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 9

Type:wordpress-plugin

1.3.3 2022-10-10 15:08 UTC

This package is auto-updated.

Last update: 2024-11-10 19:56:06 UTC


README

This plugin adds functionality to expire a post on a given date.

It does this by adding a new "Expires" date field in the Publish box.

By default a post never expires:

Default expiry state

But you can add a date instead:

Expiry set

Once that date is reached, the post is marked as expired and is no longer visible to the end user.

Dev Notes

  • the new post status is expired
  • a filter called exp_disable_expiration_for_this_post exists to disable this feature on a per-post basis.

FAQ

If I enable this plugin, what will happen to my existing posts?

Nothing, the posts current post state will remain unchanged.

Will I be able to see expired posts?

Yes, they will be visible in the expired view within the post entry list for your post type.

Will this plugin work with custom post types too?

Yes.

If I have a post set to expire and I use the filter to disable expiry for a speicific post, what happens?

When the exp_disable_expiration_for_this_post filter is used, the UI for control post expiry will not be shown, and the post will not expire. In other words, the filter overrides post expiration.