Since 28th December 2022, this plugin version has been discontinued for purchase. However, support will be continued for existing users. Post the aforementioned date, users who purchase the plugin, which now is made available as multiple add-ons, must refer to their corresponding setup guides. The drag-and-drop customizer feature is now available for purchase as an add-on.

WooCommerce PDF Invoices, packing slips and credit notes plugin | WooCommerce Shipping labels, Dispatch labels and Delivery notes plugin | WooCommerce Address labels plugin | WooCommerce Picklists plugin | WooCommerce Proforma invoices plugin | Customizer for WooCommerce PDF Invoices

Since 28th December 2022, this plugin version has been discontinued for purchase. However, support will be continued for existing users.

Home > Docs > WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels > How to Add Custom Place Holders in WooCommerce Labels

How to Add Custom Place Holders in WooCommerce Labels

Last updated on September 22, 2023

By default, the Print Invoice and Packing Slip plugin for the WooCommerce plugin allows you to display metadata in pre-defined placeholders. At times, store owners may require custom placeholders for metadata. Simply insert the below-given code snippet into functions.php of the active child theme to have custom placeholders for WooCommerce labels.

In the code snippet above, you can replace the _meta_key_1, and _meta_key_2 with the meta key of the actual meta in the post meta that you want to add to the labels. Also, make sure to copy the placeholders in the template HTML code.

The invoice template code can be accessed from Invoice settings > Customize > Code tab as shown below:

Related articles: