Title: Replace &#8216;Order Number:&#8217; text using functions.php
Last modified: October 23, 2018

---

# Replace ‘Order Number:’ text using functions.php

 *  Resolved [pixelaid](https://wordpress.org/support/users/pixelaid/)
 * (@pixelaid)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/replace-order-number-text-using-functions-php/)
 * I know I can customize the template, but I am using Galleria, a child theme of
   Storefront, so I cannot create a child theme and edit the PDF Invoices (Simple)
   template.
 * Is there a way to replace the text “Order Number:” with something else, using
   functions.php? My client wants to only display the Invoice number and not the
   Order Number, I’m thinking of replacing “Order Number:” with “Invoice Number:”
 * Alternatively, can i simple hide “Order Number:” and only display “Invoice Number:”?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/replace-order-number-text-using-functions-php/#post-10806916)
 * Hi! Replacing the text “Order Number” with “Invoice Number” is not a good idea,
   as invoice numbers are required to be sequential in most countries. But you can
   hide the order number [using CSS](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/using-custom-styles/).
   Doing this in functions.php will have the same downside as adding custom templates
   as it will be overwritten when your child theme gets updated, but you can use
   the [Code Snippets](https://wordpress.org/plugins/code-snippets/) plugin instead.
   You can then hide the order number with:
 *     ```
       add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
       function wpo_wcpdf_custom_styles ( $document_type, $document ) {
           ?>
           .invoice .order-number { display: none; }
           <?php
       }
       ```
   
 *  Thread Starter [pixelaid](https://wordpress.org/support/users/pixelaid/)
 * (@pixelaid)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/replace-order-number-text-using-functions-php/#post-10835152)
 * This is perfect – thank you so much, Ewout.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Replace ‘Order Number:’ text using functions.php’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

## Tags

 * [Hide Order number](https://wordpress.org/support/topic-tag/hide-order-number/)

 * 2 replies
 * 2 participants
 * Last reply from: [pixelaid](https://wordpress.org/support/users/pixelaid/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/replace-order-number-text-using-functions-php/#post-10835152)
 * Status: resolved