Expiring Posts
Expiring Posts
Description
This plugin adds functionality to expire a post on a given date.
This plugin currently only works with the classical editor.
It does this by adding a new “Expires” date field in the Publish box.
By default posts don’t expire, but you can add a date instead.
Once that date is reached, the post is marked as expired and is no longer visible to the end user.
Dev Notes
- Dev occurs via https://github.com/ivankruchkoff/wp-expiring-posts
- the new post status is
expired - a filter called
exp_disable_expiration_for_this_postexists to disable this feature on a per-post basis.
Faq
Nothing, the posts current post state will remain unchanged.
Yes, they will be visible in the expired view within the post entry list for your post type.
Yes.
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.
Reviews
Muito bom
By eufernando on February 16, 2023
Ótimo plugin, obrigado. Gostaria de saber como faço habilitar em somente um tipo de postagem especifica?
<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Outra dúvida é como faço para já deixar demarcado o campo "nunca expira" como padrão ? Pois a expiração é um requisito da minha publicação e não pode ser esquecido(site de vagas de emprego).</font></font>
Edit: Sou Leigo em programação mas a questão da checkbox já ficar desmarcada como padrão eu consegui resolver alterando a linha 342 para:
<input type="checkbox" name="exp-enable" <?php checked( false ); ?> id="exp-enable" value="never" />
Agora só preciso fazer com que a expiração seja habilitada somente em uma tipo de postagem específica.
Could be better
By Amrod (amrod1) on November 4, 2019

