This plugin exists to solve a simple but common need: display a Digital Product Passport (DPP) on WordPress sites, including WooCommerce product pages, without being tied to a specific provider or API. If you have the JSON, this plugin will render it consistently, accessibly, and without sending data to third parties.
Key features
Why this plugin
Quick start:
Shortcode: [digital_product_passport]
json attribute (single quotes recommended around the JSON):[digital_product_passport json='{"id":"urn:uuid:123","type":"Product","name":"Sample"}']json: Inline JSON to render (optional). If omitted, uses the saved post meta JSON.view: html|json to pick the default tab (default html).show_raw: true|false to force JSON (deprecated; overrides view).title: Optional title displayed above the viewer.limit: Number of top-level sections to show before a Show more toggle. 0 (default) shows all.include: Comma-separated list of section keys/labels to include (case-insensitive; matches raw keys or humanized labels). Example: include="id,type,manufacturer".exclude: Comma-separated list of section keys/labels to hide. Example: exclude="identifiers,documentation".order: Comma-separated preferred order of sections. Items not listed keep their natural order after these. Example: order="id,type,manufacturers,identifiers".more_label / less_label: Override the Show more/Show less button text.
Examples:
[digital_product_passport view="html" title="Digital Product Passport"][digital_product_passport view="json"][digital_product_passport limit="5" order="ID,Type,Manufacturers" exclude="Documentation"][digital_product_passport include="ID,Version,Language,Identifiers" more_label="Show all details" less_label="Show fewer"][dpp] shortcode has been removed to comply with wp.org prefixing guidelines. Use [digital_product_passport].Block (Gutenberg): “Digital Product Passport”
Classic Editor: Use the “Digital Product Passport” toolbar button
WooCommerce: On product edit screens, the same meta box is available. Place the [digital_product_passport] shortcode in any product description area or block to display the viewer on the product page.
Viewer controls (front end):
limit is set.Troubleshooting:
json attribute.[digital_product_passport] is present where you expect the viewer to appear.https://example.com and https://example.com/manual.pdf. These are placeholders for demonstration only; the plugin does not fetch or otherwise contact those URLs. Replace them with your own documentation links as needed.http://www.w3.org/2000/svg. This is a namespace identifier, not a network request or external service.No third‑party terms of service or privacy policies apply because the plugin does not use any external services.
digital_product_passport_viewer_data filter.