| 开发者 | ainbae |
|---|---|
| 更新时间 | 2026年5月10日 20:33 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
No — by design. The upload widget only appears for orders paid via Bank Transfer (BACS). It will not show for card, PayPal, or other payment methods.
Files are stored in wp-content/uploads/ainbae-receipt-upload-for-woocommerce/, which is outside the normal media library. A deny-all .htaccess file blocks direct browser access on Apache servers.
The .htaccess protection file is Apache-specific and has no effect on Nginx. If your server runs Nginx, you must add a location rule to deny access to the ainbae-receipt-upload-for-woocommerce directory inside uploads. Add this to your Nginx server block:
location ~* /uploads/ainbae-receipt-upload-for-woocommerce/ { deny all; }
Without this rule, uploaded files on Nginx servers may be directly accessible via URL.
JPG, JPEG, PNG, and PDF. Maximum file size is 5 MB. These limits are enforced on both the client (HTML accept attribute) and the server (wp_handle_upload MIME validation).
No. Once a receipt has been uploaded for an order, the upload form is replaced with a confirmation message and any further upload attempts are blocked.
No. Only an admin with manage_woocommerce capability can manage uploaded files.
Open any WooCommerce order that has a receipt. A View Uploaded Receipt button appears in the order data panel. Clicking it opens the file in a new tab via a nonce-authenticated, admin-only endpoint.
No. You can disable it entirely from the settings page under WooCommerce → Upload Receipt.
The plugin checks that the logged-in user's ID matches the order's customer ID. For guest orders, it validates the order key from the URL. If neither matches, the upload is rejected with a permission error.