Created
October 27, 2016 23:56
-
-
Save LaurenaRehbein/5df6fda11a3a2a795a08d67bfc880a91 to your computer and use it in GitHub Desktop.
Add PIP support to Shipping Multiple Addresses
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_action( 'wc_pip_after_body', 'add_shipping_addresses_to_pip', 10, 4 ); | |
function add_shipping_addresses_to_pip( $type, $action, $document, $order ) { | |
global $wcms; | |
if ( 'invoice' == $type ) { | |
$wcms->order->display_order_shipping_addresses($order); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment