plugin/pdc-expiration-date

There is no license information available for the latest version (v1.0.8) of this package.

PDC Expiration data

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 1

Open Issues: 2

Type:wordpress-plugin

pkg:composer/plugin/pdc-expiration-date

v1.0.8 2025-03-13 13:30 UTC

This package is auto-updated.

Last update: 2026-01-28 18:05:03 UTC


README

The expiration date plugin adds the option to make a PDC item expire after certain date. Expired items will not be shown on the default PDC items endpoint.

Expired items can be retrieved from the endpoint owc/pwc/v1/items/expired.

How do I get set up?

  • Unzip and/or move all files to the /wp-content/plugins/pdc-expiration-date directory
  • Log into WordPress admin and activate the ‘PDC Internal’ plugin through the ‘Plugins’ menu

Filters & Actions

There are various hooks, which allows for changing the output.

Action for changing main Plugin object.
'owc/pdc-expiration-date/plugin'

Translations

If you want to use your own set of labels/names/descriptions and so on you can do so. All text output in this plugin is controlled via the gettext methods.

Please use your preferred way to make your own translations from the /wp-content/plugins/pdc-base/languages/pdc-base.pot file

Be careful not to put the translation files in a location which can be overwritten by a subsequent update of the plugin, theme or WordPress core.

We recommend using the 'Loco Translate' plugin. https://wordpress.org/plugins/loco-translate/

This plugin provides an easy interface for custom translations and a way to store these files without them getting overwritten by updates.

For instructions how to use the 'Loco Translate' plugin, we advice you to read the Beginners's guide page on their website: https://localise.biz/wordpress/plugin/beginners or start at the homepage: https://localise.biz/wordpress/plugin

Running tests

To run the Unit tests go to a command-line.

cd /path/to/wordpress/htdocs/wp-content/plugins/pdc-expiration-date/
composer install
phpunit

For code coverage report, generate report with command line command and view results with browser.

phpunit --coverage-html ./tests/coverage

Contribution guidelines

Writing tests

Have a look at the code coverage reports to see where more coverage can be obtained. Write tests Create a Pull request to the OWC repository

Who do I talk to?

If you have questions about or suggestions for this plugin, please contact Holger Peters from Gemeente Buren.