Artwork Approval Pro documentation

Merchant guide

Product policies

The global workflow switch stops new project creation and reminders while preserving access to existing records and reviews. Deactivate the plugin to stop its interfaces entirely.

Enable Artwork approval project under the product's General tab. Other products are unaffected. A variation inherits all artwork policy from its parent; separate variation overrides are not implemented.

Artwork required and approval required inherit global defaults. Allow uploads and proof workflow inherit Yes. A required-artwork policy forces uploads on; an approval-required policy forces the proof workflow on. This prevents contradictory configuration. Blank format/size overrides inherit global settings. New projects snapshot these values, so editing a product does not silently change an existing order's requirements.

A single line item with quantity three shares one proof workflow. Two distinct line items for the same product get separate projects. Staff can add missing projects to an existing order with Sync an existing order. This does not overwrite existing versions or retroactively turn unrelated products into approval products.

Customer artwork

Customers read instructions before purchase and upload files after checkout. My Account → Artwork approvals lists their projects. The normal View order and order confirmation screens link to the same workflow.

Guests open their order link from WooCommerce's order email. The order key authorizes artwork upload for that guest order only. Proof decisions require the separately emailed, expiring review link. If guest links are disabled, a guest purchase requiring proofs is rejected at classic/Store API checkout unless an account is created.

Up to five files per submission are allowed. Existing artwork remains available when more artwork is added. Uploads close once a proof is awaiting review or the item is approved/production ready/completed; a staff review reopening allows further artwork.

Staff review and revisions

The dashboard counts are database-backed. Staff review includes newly received artwork. Filter by status, product ID, created date, order ID, customer login or billing email. Billing-email search looks at up to the 100 most recent matching WooCommerce orders to keep the query bounded; use an order ID for an older order.

Open a project to see its files, proof versions and timeline. Upload one proof file per version and optionally add a customer-facing message. Uploading a new proof never replaces an earlier file or decision. A new proof after approval starts a new review cycle. To revise an item already production ready/completed, first reopen Staff review.

Approve requires an approver name and explicit confirmation of the displayed version. Request changes requires a meaningful message. Approval states cannot be set by a generic status dropdown. Production readiness requires approval of the current version when configured; every bulk transition applies the same rule.

Staff notes and customer comments appear in the activity history. Approval is an operational acknowledgement, not a certified or legally characterized signature.

Emails and reminders

WooCommerce → Settings → Emails contains proof-ready/revision, reminder, approval-confirmation, staff-approved, changes-requested, artwork-uploaded and customer-comment notifications. Configure subjects, headings, HTML/plain/multipart types and staff recipients. The global notification switch also applies.

Fresh review messages and reminders create a new scoped link and revoke previous links. A failed send is recorded in the timeline and WooCommerce log. Use Send fresh review notification after resolving mail configuration. That action reports delivery failure rather than reporting a successful resend. Actual inbox delivery still depends on the store's mail server; a successful send response cannot guarantee inbox arrival.

Reminders run through Action Scheduler, are unique per project/version, and stop at the configured maximum or decision. The database counter advances on a send attempt so mail failures cannot cause unlimited retries. The first reminder is delayed from proof upload; subsequent attempts use the interval setting. Pending review schedules recover after activation and during daily maintenance. WooCommerce → Status → Scheduled Actions shows the aap group. Configure real cron for stores with low traffic.

Production and fulfillment

Production ready and Completed are workflow states, not WooCommerce order statuses. The plugin does not charge payments, manage printers, manufacture goods, block external shipping integrations or change a paid order's fulfillment status. Use aap_production_ready and aap_approval_completed for those integrations.

Troubleshooting

- Missing menu: activate WooCommerce and check manage_woocommerce capability.

- Missing project: verify product configuration, enable the global workflow, then sync the order. Cancelled/refunded/failed orders cannot be processed.

- Account endpoint 404: save Settings → Permalinks once; plugin activation normally flushes it.

- Upload error: check OpenSSL/Fileinfo/Mbstring, local write access, PHP request/file limits and selected product formats. The effective per-file limit is the smaller product/server limit. Maximum plugin limit is 20 MB.

- Wrong extension: renaming a file does not convert it. Submit genuine PDF/JPEG/PNG/WebP bytes.

- No proof email: check notification switches, billing address, email recipients, timeline and WooCommerce logs.

- Expired or revoked link: staff resend the current review. Superseded versions cannot be approved.

- Missing/decryption-failed file: check configured path, file retention and encryption key restoration. There is no recovery without the correct key and ciphertext backup.

- No reminders: check Action Scheduler and WP-Cron/server cron; inspect max-count and notification settings.

- Deleted product: the existing order item and project snapshot still identify the workflow. Removed orders/items cannot be accessed; their records are preserved until cleanup.

- Network activation: not a verified deployment mode. Activate/configure individually per site and do not assume network-wide destructive uninstall cleans every subsite.

Security and confidential files

Storage design

Every accepted file is encrypted before it is written, using AES-256-GCM with a random 12-byte IV and 16-byte authentication tag. Files have random 48-hex-character names and the .aap extension. The binary format is AAP1 + IV + tag + ciphertext; AAP1 is also authenticated additional data. The default location is the uploads directory's aap-encrypted subdirectory. Deny rules and an index file provide defense in depth, but Apache rules alone do not secure Nginx. Directly reachable ciphertext is not a plaintext preview.

For stronger separation, configure an absolute local path outside the document root in wp-config.php:

define( 'AAP_PRIVATE_PATH', '/srv/private-artwork/example-store' );

The web/PHP worker needs directory write access. Unix-style absolute local paths are required by this version; Windows paths and remote filesystem schemes are not supported. This is a local encrypted filesystem integration, not an object-storage adapter.

The plugin writes a random 256-bit encryption key to the non-autoloaded aap_encryption_key option unless AAP_ENCRYPTION_KEY is configured. Database and file backups must be taken together. For separation from database backups, put a 64-character hexadecimal 256-bit key in wp-config.php:

define( 'AAP_ENCRYPTION_KEY', 'YOUR_EXISTING_64_HEX_CHARACTER_KEY' );

Use the existing option value when migrating to this constant; never invent a replacement key for existing ciphertext. Restore the same key, path and files when migrating hosts. Changing/removing a key breaks decryption; this version does not perform automatic key rotation or path migration. Backups with both the database key and ciphertext contain everything needed to decrypt files and must be protected.

Delivery and authorization

Files pass through admin-post.php?action=aap_file. Staff need manage_woocommerce; account customers need live WooCommerce order ownership; guests need a valid order key for artwork/order browsing or a cryptographic proof token for current-proof delivery. A review token authorizes only its current proof file, not artwork, old proofs or other customer data. File names are never used to construct user-requested paths. Random storage references are strictly validated and symlinked files are rejected.

Images are delivered inline only after MIME authorization, with no-sniff, no-store and restrictive response headers. PDFs download as attachments. MIME, extension, upload origin, size, image signature and PDF header are validated. These checks are not antivirus or content safety scanning; merchants should use their own malware scanning and safe document handling policy where needed.

Review tokens and mutations

Tokens contain 256 bits of randomness and only SHA-256 hashes are stored. They expire, can be revoked, and bind a project and exact proof record. All prior tokens are revoked on a new version, customer decision, explicit revocation or fresh review email. A proof token cannot approve a later version. The approval transaction locks the project row and revalidates ownership/token, current version, state and file integrity before committing the decision and audit record.

Account/staff POST actions require a WordPress nonce and authorization. Guest POST forms require their bearer credential plus a server-HMAC-signed, one-hour form timestamp. Public sensitive requests use a database rate counter, bounded to 120 attempts per ten-minute bucket using a rotating HMAC of the connection address. No raw address is stored by the plugin. Shared networks may hit the limit; reverse-proxy IP trust is deliberately not inferred from client-supplied headers.

The dedicated bearer review/order-artwork page omits theme scripts, analytics and third-party resources and sends no-referrer/noindex/no-store headers. Use HTTPS. Review tokens/order keys can still appear in browser history, server/proxy access logs, mail systems or forwarded email. Anyone possessing a valid bearer credential can exercise its scoped authority. Do not install tracking on these pages or share links publicly.

Other protections

- Allowlisted workflow transitions and production gates apply to single and bulk actions.

- SQL values and dynamic identifiers use prepared queries. Fragment builders accept whitelisted fields; no request-provided column/table names are used.

- HTML text/attributes/URLs are escaped at output. Comments and names are sanitized and length-bounded.

- CSV fields with a leading formula operator, including after whitespace, are prefixed with an apostrophe.

- Transactions require InnoDB and migrations validate table/column presence.

- No public REST/AJAX permission callback, external API dependency, telemetry or tracking code is installed.

Audit records are append-only during normal workflow operations. Privacy-tool anonymization and explicitly configured destructive uninstall are deliberate exceptions. They are business records, not a tamper-proof ledger or legal signature service.

Privacy, retention and removal

Stored information

The plugin stores order/item/product and customer identifiers, artwork/proof metadata and encrypted files, uploader/user identifiers, supplied approver names, comments/messages, operational timestamps, exact-version decisions and hashed review tokens. The plugin does not send telemetry or call external services. Email content passes through the store's WooCommerce mail transport.

Guest rate limits use a rotating HMAC of the request's connection address, stored only in ten-minute bucket counters and cleaned during daily maintenance. Raw IP addresses are not retained by this plugin. Web servers, mail servers, hosting backups and security extensions can have independent logs; merchants remain responsible for their policies.

WordPress privacy tools

Personal data export finds projects via WooCommerce orders matching a billing email and exports workflow facts and timeline names/comments. It does not attach confidential artwork bytes to the privacy report; authorized downloads remain available in the workflow. Exports process 20 orders per page.

Erasure explicitly anonymizes plugin actor/user/customer identifiers and removes stored comments/merchant messages. It revokes guest tokens. Order identifiers, workflow events and proof versions remain, as do filenames and file contents, because these may be transaction records. The eraser reports retained data rather than claiming it deleted everything. WooCommerce order/customer erasure remains WooCommerce's responsibility. Apply a store-specific legal retention policy and completed-file retention or destructive removal when file contents must be removed.

Anonymization is an intentional exception to normal append-only audit behavior. Names/comments cannot be recovered except from protected backups after it runs.

File retention

Default: preserve files indefinitely. Set Completed file retention (days) to remove file bytes after an item remains Completed for that many days. Daily maintenance processes up to 50 projects and 100 files per eligible project per pass. Larger backlogs drain over subsequent passes. Proof/file metadata and decisions remain, and removed files are labelled as removed by retention policy. Reopened or pending items are not purged.

Retention removes registered plugin files only. It does not delete WooCommerce downloads, customer media or unrelated files. Backups may still contain old bytes and need a separate retention policy.

Deactivation and uninstall

Deactivation keeps all business records, keys and files; scheduled plugin jobs are cancelled. Re-activation recovers pending reviews.

Default uninstall preserves records and key material. If the administrator enables Delete plugin data on uninstall, plugin deletion removes registered encrypted files, five custom tables, plugin and email options, rate counters and plugin product metadata when WooCommerce is available. Only registered randomized file references are removed; unrelated files and directories are left alone. If any registered file cannot be removed, the uninstall stops before removing database/key material so the administrator can fix permissions and retry. Remove a constant-configured key/path from wp-config.php manually only after a verified destructive removal.

This release is verified on a single WordPress site. Network-wide destructive uninstall is not supported as a cleanup guarantee.

Support: support@themescorpion.com