PDC Internal Products
Splits all of the PDC items in two distinct types: internal and/or external products.
by Yard | Digital Agency · github.com/openwebconcept/plugin-pdc-internal-products · website
★ 0stars
866composer installs
1forks
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/openwebconcept/plugin-pdc-internal-products/archive/refs/heads/master.zipAlso on Packagist as plugin/pdc-internal-products:
composer require plugin/pdc-internal-productsFrom the readme
README #
The Internal Products plugin splits items of the PDC into two types: internal and external.
PDC items will need to be coupled to either one of the two types in order for them to show up in the endpoint. This is to prevent accidental mixing of internal and external items.
An additional data field for Internal Data is added in the admin for all PDC items.
Rest API ##
This plugin chages the behaviour of the existing owc/pdc/v1/items endpoint in that it returns external items only.
All internal and external items can be accessed on the owc/pdc/v1/items/internal endpoint.
In order to receive internal items only, the additional exclude=external parameter can be used as in /owc/pdc/v1/items/internal?exclude=external.
Individual internal items can be accessed either on the owc/pdc/v1/items/{slug}/internal or owc/pdc/v1/items/{id}/internal endpoint. This endpoint will return the content of the Internal Data field under the key [internal-data].
Authorization ###
In order to make a request to one of the endpoints provided by this plugin user credentials need to be passed along to REST API requests served over https:// using Basic Auth / RFC 7617.
See this wordpress document
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.