{"id":416057,"date":"2026-12-05T14:24:22","date_gmt":"2026-12-05T14:24:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/milans-invoices-for-woo\/"},"modified":"2026-12-05T14:24:04","modified_gmt":"2026-12-05T14:24:04","slug":"milans-invoices-for-woo","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/milans-invoices-for-woo\/","author":8815262,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"7.1.5","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Milan's Invoices for Woo","header_author":"Milan Gruji\u0107","header_description":"Automatically generates, attaches, and manages branded PDF invoices for WooCommerce orders.","last_updated":"2026-12-05 14:24:04","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/milangru\/Milan-s-Invoices-for-Woo","header_author_uri":"https:\/\/github.com\/milangru","rating":0,"author_block_rating":0,"active_installs":0,"downloads":45,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"milangru","date":"2026-12-05 14:24:04","revision":3846390}},"upgrade_notice":{"1.0.1":"<p>Security hardening and compliance update: unguessable invoice filenames and a slug-based uploads folder. Recommended update.<\/p>","1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3846419,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3846419,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3846419,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3846419,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3846419,"resolution":"1","location":"assets","locale":"","width":1360,"height":583},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3846419,"resolution":"2","location":"assets","locale":"","width":1188,"height":474},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3846419,"resolution":"3","location":"assets","locale":"","width":1046,"height":518},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3846419,"resolution":"4","location":"assets","locale":"","width":528,"height":548}},"screenshots":{"1":"Settings screen with live invoice preview.","2":"Order admin metabox with Download \/ Regenerate actions.","3":"Download PDF Invoice button in My Account &gt; Orders.","4":"A generated PDF invoice."}},"plugin_section":[],"plugin_tags":[50190,12480,16281,1764,286],"plugin_category":[45,50],"plugin_contributors":[271020],"plugin_business_model":[],"class_list":["post-416057","plugin","type-plugin","status-publish","hentry","plugin_tags-dompdf","plugin_tags-invoice","plugin_tags-orders","plugin_tags-pdf","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_category-media","plugin_contributors-milangru","plugin_committers-milangru"],"banners":{"banner":"https:\/\/ps.w.org\/milans-invoices-for-woo\/assets\/banner-772x250.png?rev=3846419","banner_2x":"https:\/\/ps.w.org\/milans-invoices-for-woo\/assets\/banner-1544x500.png?rev=3846419","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/milans-invoices-for-woo\/assets\/icon-128x128.png?rev=3846419","icon_2x":"https:\/\/ps.w.org\/milans-invoices-for-woo\/assets\/icon-256x256.png?rev=3846419","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/milans-invoices-for-woo\/assets\/screenshot-1.png?rev=3846419","caption":"Settings screen with live invoice preview."},{"src":"https:\/\/ps.w.org\/milans-invoices-for-woo\/assets\/screenshot-2.png?rev=3846419","caption":"Order admin metabox with Download \/ Regenerate actions."},{"src":"https:\/\/ps.w.org\/milans-invoices-for-woo\/assets\/screenshot-3.png?rev=3846419","caption":"Download PDF Invoice button in My Account &gt; Orders."},{"src":"https:\/\/ps.w.org\/milans-invoices-for-woo\/assets\/screenshot-4.png?rev=3846419","caption":"A generated PDF invoice."}],"raw_content":"<!--section=description-->\n<p>Milan's Invoices for Woo generates a branded PDF invoice the moment an order reaches the Processing status, attaches it to the WooCommerce \"Customer Processing Order\" and \"Customer Completed Order\" emails (and to the manual \"Email invoice \/ order details to customer\" order action), and gives both admins and customers a secure way to download it afterwards.<\/p>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>Automatic PDF generation on order status change to Processing, with duplicate-generation protection.<\/li>\n<li>Attaches the invoice to the relevant customer-facing WooCommerce emails automatically.<\/li>\n<li>Admin settings screen (WooCommerce &gt; Milan's Invoices) for company details, bank account info, and a WYSIWYG header\/footer with placeholder support ({order_number}, {order_date}, {customer_name}, {total_amount}).<\/li>\n<li>Live invoice preview on the settings screen, rendered from your most recent real order. The preview reflects your current form values, so you can see changes before saving them.<\/li>\n<li>HPOS-compatible order metabox with Download \/ Regenerate Invoice actions.<\/li>\n<li>Customer-facing \"Download PDF Invoice\" button on My Account &gt; Orders.<\/li>\n<li>Secure downloads: invoices are served only through a nonce- and capability-checked handler, and the invoices folder is protected from direct access (nginx needs one extra rule, see Installation).<\/li>\n<li>Unguessable invoice filenames: each order gets a random per-order token stored in order meta and appended to the filename.<\/li>\n<li>Full i18n support (text domain: <code>milans-invoices-for-woo<\/code>).<\/li>\n<\/ul>\n\n<p><strong>Bundled libraries<\/strong><\/p>\n\n<p>This plugin bundles <a href=\"https:\/\/github.com\/dompdf\/dompdf\">Dompdf<\/a> v3.1.6 (LGPL-2.1) to render PDFs, together with its dependencies php-font-lib, php-svg-lib, masterminds\/html5, sabberworm\/php-css-parser and thecodingmachine\/safe, in the <code>vendor\/<\/code> folder. Exact versions are listed in <code>composer.json<\/code> \/ <code>composer.lock<\/code> in the GitHub repository: https:\/\/github.com\/milangru\/Milan-s-Invoices-for-Woo<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to <code>wp-content\/plugins\/milans-invoices-for-woo\/<\/code>, or install it through the WordPress plugins screen.<\/li>\n<li>This plugin requires its bundled PHP dependencies to be present under <code>vendor\/<\/code>. If you're installing from a release zip, these are already included. If you're building from source, run <code>composer install --no-dev --optimize-autoloader<\/code> in the plugin directory first (see the README.md in the GitHub repository for a note on a one-time Dompdf packaging quirk).<\/li>\n<li>Activate the plugin through the \"Plugins\" screen in WordPress. Activation automatically creates <code>wp-content\/uploads\/milans-invoices-for-woo\/<\/code> with a hardening <code>.htaccess<\/code> (<code>Deny from all<\/code> \/ <code>Options -Indexes<\/code>) and an empty <code>index.php<\/code>.<\/li>\n<li>Go to WooCommerce &gt; Milan's Invoices and fill in your company details, bank account, and invoice header\/footer.<\/li>\n<li><strong>nginx users only:<\/strong> nginx ignores <code>.htaccess<\/code>, so add <code>location ^~ \/wp-content\/uploads\/milans-invoices-for-woo\/ { deny all; }<\/code> inside your site's <code>server { ... }<\/code> block, then reload nginx. This blocks HTTP access to the whole invoices folder, so a direct URL returns 403 even with the correct token. The plugin's own download handler is unaffected. On multisite the path is <code>\/wp-content\/uploads\/sites\/N\/milans-invoices-for-woo\/<\/code>, so adjust the rule accordingly.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20work%20with%20woocommerce%27s%20high-performance%20order%20storage%20%28hpos%29%3F\"><h3>Does this work with WooCommerce's High-Performance Order Storage (HPOS)?<\/h3><\/dt>\n<dd><p>Yes, the plugin declares HPOS compatibility and the order metabox works with both HPOS and legacy post-based order storage.<\/p><\/dd>\n<dt id=\"where%20are%20invoice%20pdfs%20stored%3F\"><h3>Where are invoice PDFs stored?<\/h3><\/dt>\n<dd><p>In <code>wp-content\/uploads\/milans-invoices-for-woo\/<\/code>, which is protected from direct browsing via <code>.htaccess<\/code> and an empty <code>index.php<\/code>. Downloads are only served through a nonce-protected, capability-checked handler. On nginx, you must add the equivalent <code>deny all<\/code> rule manually (see Installation).<\/p><\/dd>\n<dt id=\"can%20invoice%20filenames%20be%20guessed%3F\"><h3>Can invoice filenames be guessed?<\/h3><\/dt>\n<dd><p>Not in practice. Each filename includes a random 20-character per-order token, and the folder is protected against direct HTTP access (automatically on Apache, via the rule in Installation on nginx).<\/p><\/dd>\n<dt id=\"does%20this%20work%20on%20nginx%3F\"><h3>Does this work on nginx?<\/h3><\/dt>\n<dd><p>Yes, but nginx ignores <code>.htaccess<\/code>, so you must add the <code>location ^~ \/wp-content\/uploads\/milans-invoices-for-woo\/ { deny all; }<\/code> rule manually (see Installation). Invoice downloads through the plugin work either way.<\/p><\/dd>\n<dt id=\"can%20customers%20download%20their%20own%20invoices%3F\"><h3>Can customers download their own invoices?<\/h3><\/dt>\n<dd><p>Yes, from My Account &gt; Orders, for orders in Processing or Completed status once an invoice has been generated for them.<\/p><\/dd>\n<dt id=\"what%20happens%20to%20my%20invoices%20when%20i%20delete%20the%20plugin%3F\"><h3>What happens to my invoices when I delete the plugin?<\/h3><\/dt>\n<dd><p>Nothing is deleted by default, because invoices often have to be retained. To remove all plugin data on deletion, enable \"Delete all plugin data\" under WooCommerce &gt; Milan's Invoices &gt; Data before deleting the plugin.<\/p><\/dd>\n<dt id=\"does%20the%20settings%20preview%20show%20changes%20i%20haven%27t%20saved%20yet%3F\"><h3>Does the settings preview show changes I haven't saved yet?<\/h3><\/dt>\n<dd><p>Yes. Click \"Refresh Preview\" and the preview is rendered with whatever is currently in the form, including the header and footer editors. Nothing is saved until you click \"Save Settings\".<\/p><\/dd>\n<dt id=\"why%20does%20the%20preview%20say%20it%20needs%20an%20order%3F\"><h3>Why does the preview say it needs an order?<\/h3><\/dt>\n<dd><p>The preview is rendered from your most recent real order, so at least one order must exist in your store.<\/p><\/dd>\n<dt id=\"images%20do%20not%20appear%20in%20the%20pdf.\"><h3>Images do not appear in the PDF.<\/h3><\/dt>\n<dd><p>Make sure the PHP GD extension is enabled on your server. Only images stored in the WordPress uploads directory (media library) can be used; images from other sites or from your theme folder are not loaded for security reasons.<\/p><\/dd>\n<dt id=\"i%20rebuilt%20vendor%2F%20after%20upgrading%20dompdf%20and%20now%20get%20%22path%20cannot%20be%20empty%22\"><h3>I rebuilt vendor\/ after upgrading Dompdf and now get \"Path cannot be empty\"<\/h3><\/dt>\n<dd><p>Dompdf's Composer distribution does not ship a <code>VERSION<\/code> file that its own <code>Options<\/code> constructor unconditionally reads. Recreate the file with the correct installed version; see \"Build notes\" in the GitHub README. The shipped <code>vendor\/<\/code> already contains the correct file.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Security hardening and WordPress.org compliance fixes: unguessable invoice filenames, slug-based uploads folder, inline settings notice, documented nginx protection.<\/li>\n<li>New: the settings-page preview now reflects unsaved form values, including the header and footer editors.<\/li>\n<li>Invoices from 1.0.0 are moved to unguessable file names automatically the first time they are opened, emailed or regenerated. Only the file name is stored, so moving the site no longer breaks invoices.<\/li>\n<li>Dompdf no longer fetches remote URLs and can only read the uploads directory; logos and product images from the media library still work.<\/li>\n<li>The invoice is no longer attached to the admin \"New order\" email.<\/li>\n<li>Admin notices appear only on the order edit screen (and the missing-WooCommerce notice only on the Plugins screen); the confirmation dialog no longer uses inline JavaScript.<\/li>\n<li>New opt-in setting and uninstall.php to remove settings, invoice PDFs and invoice order meta when the plugin is deleted. Nothing is removed by default.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Automatically generates, attaches, and manages branded PDF invoices for WooCommerce orders.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/416057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=416057"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/milangru"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=416057"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=416057"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=416057"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=416057"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=416057"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=416057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}