Title: Plugin footer
Last modified: October 2, 2020

---

# Plugin footer

 *  [harutyun06](https://wordpress.org/support/users/harutyun06/)
 * (@harutyun06)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-footer/)
 * I want to add “Shipping” method to the top side in invoice from footer side!
   
   Please help if there is a working method to do so!
 * [https://drive.google.com/file/d/1665bP2WFCPOpHgnslVUTGNm4kae20nur/view?usp=sharing](https://drive.google.com/file/d/1665bP2WFCPOpHgnslVUTGNm4kae20nur/view?usp=sharing)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-footer%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [kluver](https://wordpress.org/support/users/kluver/)
 * (@kluver)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-footer/#post-13492328)
 * Hi [@harutyun06](https://wordpress.org/support/users/harutyun06/),
 * The easiest way to add the shipping method to your footer is with our [Premium templates extension](https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/).
   You can then simply use the **{{shipping_method}}** placeholder in the footer
   field.
 * You can achieve something similar with the following code snippet:
 *     ```
       add_filter( 'wpo_wcpdf_footer_settings_text', 'wpo_wcpdf_add_shipping_method_to_footer', 10, 2 );
       function wpo_wcpdf_add_shipping_method_to_footer( $text, $document ) {
       	if ( $document->get_type() == 'invoice' ) {
       		$text .= sprintf(' <p>%s</p>', $document->order->get_shipping_method() );
       	}
       	return $text;
       }
       ```
   
 * This code snippet should be added to the functions.php of your child theme or
   via a plugin like Code Snippets. If you haven’t worked with code snippets or 
   functions.php before please read this: [How to use filters](https://docs.wpovernight.com/general/how-to-use-filters/)
 *  Thread Starter [harutyun06](https://wordpress.org/support/users/harutyun06/)
 * (@harutyun06)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-footer/#post-13492422)
 * I am sorry but the code is not working :/
 *  Plugin Contributor [kluver](https://wordpress.org/support/users/kluver/)
 * (@kluver)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-footer/#post-13503077)
 * This is working without any issues on my local environment. How did you add the
   filter to your site? Are you sure it is being called?

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

The topic ‘Plugin footer’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [kluver](https://wordpress.org/support/users/kluver/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/plugin-footer/#post-13503077)
 * Status: not resolved