Focused WordPress plugins for real client work.Clear licensing for 1, 5, or 100 websites

Woo Attachment documentation

Help and reference for version 2.3.2.

Overview

Dprime Woo Attachment adds an Attachments tab to every WooCommerce product. Upload one or more PDFs or Word documents, label each with a type (Manual, Specs, Warranty, Datasheet, Installation Guide, Brochure, Certificate, Size Guide, or Other), and the files appear automatically as a downloadable list on the product page.

Files are served through a PHP endpoint with a fresh per-request nonce and a strict MIME type allowlist. Direct URL hits on the upload folder are not required, so the plugin works correctly on hosts that block them.

**Features**

Requirements

  • WordPress 6.4 or newer
  • PHP 8.2 or newer
  • WooCommerce must be active

Installation

  1. Upload the plugin folder to /wp-content/plugins/.
  2. Activate Dprime Woo Attachment through the Plugins screen.
  3. Make sure Dprime Core is installed and your site is connected.
  4. Open any WooCommerce product, click the Attachments tab, and upload your files.

Using the plugin

  • Adds an Attachments tab to the WooCommerce product editor
  • Nine predefined attachment types, extensible via filter
  • PDFs, DOC, and DOCX file formats
  • Secure file serving with nonce protection and MIME allowlist
  • Automatic frontend rendering below the product summary
  • Optional "Product Attachments" heading toggle

Works with

These connections are covered by the release contract tests.

  • AI Smart Woo Chatbot: Product-linked attachment downloads inside store chat

Data and cleanup

  • 1 WordPress setting
  • Content metadata: _dprime_product_attachments
  • Uploaded files: wp-content/uploads

Retention: kept until the plugin is uninstalled. Uninstall policy: delete the plugin-owned data declared above.

Frequently asked questions

What file types are supported?

PDF (application/pdf), Microsoft Word (application/msword), and Microsoft Word OpenXML (application/vnd.openxmlformats-officedocument.wordprocessingml.document).

Can I add custom attachment types?

Yes. Use the dpwat_attachment_types filter to add or remove entries from the type list.

Where do attachments appear on the product page?

Below the product summary, hooked at woocommerce_single_product_summary priority 35. If your theme replaces the single product template entirely, call do_action( 'woocommerce_single_product_summary' ) from your theme.

Why are files served through admin-ajax.php instead of direct URLs?

So the plugin can enforce the MIME allowlist on every download and so the feature works on hosts that block direct hits on wp-content/uploads.

Updates and access

An active individual or portfolio entitlement provides new versions and support. After expiry, the installed local version remains but every update entitlement, support, and protected remote service access stop.