Old price lists, last year’s policies and closed offers can do harm if visitors keep downloading them. With DocVault, a free document management plugin, you can give a document an expiry date and let it withdraw itself.
Set an expiry date
- Install and activate DocVault from WordPress.org.
- Open a document in Documents.
- In the Expiry Date box, pick a date.
- Click Update.
What happens after the date
The document stays available on its expiry date. From the next day (in your site’s time zone, set under Settings → General):
- It is hidden from the document list and its search, your site’s search results, and document category and tag pages.
- It is hidden from Query Loop block listings and the REST API.
- Its download and view links stop working for visitors, and the Document block and inline links show nothing.
Administrators and the document’s author can still download it, and it stays in the admin so you can update or remove it.
See what is about to expire
The Expires column in the Documents list shows documents expiring within 30 days in amber and expired documents in red.
Keep an archive of expired documents
To list expired documents on a page, for example an archive, add show_expired="true" to the shortcode:
[trdv_list show_expired="true"]
Remove an expiry date
Clear the date in the Expiry Date box and click Update.
With DocVault Pro
DocVault Pro records each expiry date change in its audit trail and can send an email notification when an expiry date is set or cleared.
