plugin / pdc-base
PDC Base plugin
Installs: 317
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 6
Open Issues: 4
Type:wordpress-plugin
Requires
- php: ^7.4|^8.0
- johnbillion/extended-cpts: ^5.0
- yahnis-elsts/plugin-update-checker: ^5.0
Requires (Dev)
- 10up/wp_mock: ~0.5
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.5
- phpunit/phpunit: ~9.0
- szepeviktor/phpstan-wordpress: ^1.1
- dev-master
- v3.15.3
- v3.15.2
- v3.15.1
- v3.15.0
- v3.14.1
- v3.14.0
- v3.13.6
- v3.13.5
- v3.13.4
- v3.13.3
- v3.13.2
- v3.13.1
- v3.13.0
- v3.12.2
- v3.12.1
- v3.12
- v3.11.1
- v3.11
- v3.10
- v3.9.1
- v3.9
- v3.8.6
- v3.8.5
- v3.8.4
- v3.8.3
- v3.8.2
- v3.8.1
- 3.8.0
- v3.7.12
- v3.7.11
- v3.7.10
- v3.7.9
- v3.7.8
- v3.7.7
- v3.7.6
- v3.7.5
- v3.7.4
- v3.7.3
- v3.7.2
- v3.7.1
- v3.7.0
- v3.6.4
- v3.6.3
- v3.6.2
- v3.6.1
- v3.6.0
- v3.4.11
- v3.4.10
- v3.4.9
- v3.4.8
- v3.4.7
- v3.4.6
- v3.4.5
- v3.4.4
- v3.4.3
- v3.4.2
- v3.4.1
- v3.4.0
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.9
- v3.2.8
- v3.2.7
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.1.16
- v3.1.15
- v3.1.14
- v3.1.13
- v3.1.12
- v3.1.11
- v3.1.10
- v3.1.9
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.0.1
- v3.0.0
- v2.2.12
- v2.2.11
- v2.2.10
- v2.2.9
- v2.2.8
- v2.2.7
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- 2.2.0
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.0
- 1.1
- 1.0
- dev-feature/getShowOnPortalURL-public
- dev-fix/autoloader
- dev-feat/upgrade-composer-deps
- dev-fix/cli-providers
- dev-feature/postdata-and-portal-url
- dev-feat/add-language-workflow
- dev-fix/metabox-group-saving-issues
- dev-feat/extra-filters-options-items-endpoint
- dev-feat/tax-show-in-rest
- dev-support-27947-2
- dev-support-27947
- dev-feat/use-feedback-form-setting
- dev-feat/theme-fields
- dev-feat/push-to-sdg
- dev-feat/releases-updates
- dev-feat/show-on
- dev-feat/sdg-kiss
- dev-feat/php8-update-deps
- dev-feat/add-seo-data
- dev-feat/enhance-pdc-items
- dev-fix/url-escape
- dev-feat/id-in-portal-url-setting
- dev-feat/filterable-portal-url
- dev-feat/wpgraphql
- dev-chore/improve-docs
- dev-localhost-install-dev
- dev-feat/multiple-upl-items-selection
- dev-fix-autoloader
- dev-feature/internal-items-need-authorization
- dev-feature/add-author-to-pdc-item
- dev-fix/remove-faq-registration
- dev-feauture/single-sub-theme-slug
- dev-fix/link-shortcode-url
- dev-feature/add-file-size
- dev-fix/wrong-url-encoding
- dev-fix/links-shortcode
- dev-feature/add-fields
- dev-faqarray
- dev-development
- dev-themesearch
This package is auto-updated.
Last update: 2025-03-25 12:48:08 UTC
README
This repository contains the the OpenwebConcept OpenPDC plugin.
Installation
Before installation, make sure you install following required plugins:
For users
- Download the latest release from the releases page
- Unzip and move all files to the
/wp-content/plugins/pdc-base
directory. - Log into the WordPress admin and activate the 'Yard | OpenPDC Base' plugin through the 'plugins' menu
- Go to the 'PDC instellingen' pagina in the left-hand menu to enter some of the required settings
For developers
To contribute to this project, no dependencies are required. However, you will need to download Composer to run tests or create an optimized build of the plugin.
- Clone this repository to your machine and/or WordPress installation
- Optionally use Composer (
composer install
) to install the dev dependencies
To create an optimized and zipped build, run the composer run package
command. This requires Composer
, rsync
and zip
to run.
Activation error(s)?
When activating the 'PDCBase' plugin is causing the following error:
Install the following required plugins:
Activating the plugin after installation should fix the issue:
Additional Settings
On the 'PDC instellingen' page there are 2 optional settings for extending the slug used in the 'view in portal' url. The 'view in portal' button can be found in de wp-admin bar on the editor pages of the pdc-items or inside the 'quick edit' blocks on the overview page of pdc-items. With these optional settings the theme and subtheme can be included into the 'view in portal' url.
Additionally, there is a possibility to use a fourth layer called 'pdc-groups'. The hierarchy, when the fourth layer setting is checked, is pdc-theme -> pdc-subtheme -> pdc-group -> pdc-item.
Finally, pdc-items can support multiple identifications for scheduling an appointment. Currently there are meta settings for DigiD, eHerkenning and eIDAS. You can set those values in the editor of a pdc-item.
Connections
Some connections between posttypes are required for the portal to work properly. The required connections and in the correct order when filling the website:
- pdc-theme -> none
- pdc-subtheme -> pdc-theme
- pdc-group -> pdc-item, pdc-theme and pdc-subtheme (pdc-groups usage is optional)
- pdc-item -> pdc-theme, pdc-subtheme
Filters & Actions
There are various hooks, which allows for changing the output.
Action for changing main Plugin object.
'owc/pdc-base/plugin'
See OWC\PDC\Base\Foundataion\Config->set method for a way to change this plugins config.
Via the plugin object the following config settings can be adjusted
- metaboxes
- p2p_connections
- posttypes
- rest_api_fields
- settings
- settings_pages
- taxonomies
Filters the Posts to Posts connection defaults.
owc/pdc-base/p2p-connection-defaults
Filters the per Posts to Posts connection, connection type args.
owc/pdc-base/before-register-p2p-connection/{$posttypes_from}/{$posttypes_to]}
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcitem/field/get-links
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcitem/field/get-forms
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcitem/field/get-downloads
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcitem/field/get-title-alternative
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcitem/field/get-appointment
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcitem/field/get-featured_image
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcitem/field/get-taxonomies owc/pdc-base/core/posttype/posttypes/pdc_item/get-taxonomies/taxonomy-ids
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcitem/field/get-connections
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcsubcategory/field/has-report
Filters the data retrieved for this Rest API field.
owc/pdc-base/rest-api/pdcsubcategory/field/has-appointment
Filters the metaboxes to be registered just before registration.
owc/pdc-base/before-register-metaboxes
Filters the settings to be registered just before registration.
owc/pdc-base/before-register-settings
Allow additional actions before and after the creation of a featured image.
owc/pdc-base/rest-api/shared-items/field/before-creation-featured-image owc/pdc-base/rest-api/shared-items/field/after-creation-featured-image
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-base/
composer install
composer unit
For code coverage report, generate report with command line command and view results with browser.
composer unit-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.