ElasticPress Embargo Attachments
Hide documents from ElasticPress search until a given date & time
by dxw · github.com/dxw/elasticpress-embargo-attachments · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/dxw/elasticpress-embargo-attachments/archive/refs/heads/master.zipReadme
ElasticPress Embargo Attachments
A WordPress plugin that allows media library files to be embargoed from search when using ElasticPress.
By default, ElasticPress will return all media library items in search results if Document Search is activated. Items are indexed on upload, and immediately start being returned in search.
This plugin provides an "Embargo datetime" option on media library items, and then hides those items from search until the datetime has passed.
Installation
Clone this repo into your WordPress /plugins/ directory, and activate the plugin.
You will need to re-index the first time you set an embargo datetime. After that, ElasticPress will recognise embargo datetimes automatically.
Development
Install the dependencies:
composer install
Run the tests:
vendor/bin/peridot spec
Run the linter:
vendor/bin/php-cs-fixer fix Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.