Created
February 13, 2020 05:23
-
-
Save webtoffee-git/6dd274041ee3dd166b55fa45b886b5d0 to your computer and use it in GitHub Desktop.
Add order status to invoice using WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels by WebToffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wf_pklist_alter_additional_fields', 'webtoffee_add_order_status_in_invoice', 10, 3); | |
function webtoffee_add_order_status_in_invoice($extra_fields, $template_type, $order) { | |
$extra_fields['Order status']=$order->get_status(); | |
return $extra_fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment