Created
June 28, 2020 20:50
-
-
Save hedqvist/37a971c813e96b0c30ed1d1b25a8ffa5 to your computer and use it in GitHub Desktop.
Unifaun -
This file contains hidden or 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
| <?php | |
| /** | |
| * @snippet WooCommerce - Unifaun - Set receiverReference tp order ID | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 4.1.1 | |
| */ | |
| function redlight_unifaun_receiver_reference( $shipment, $order ) { | |
| $shipment['receiverReference'] = $order->get_order_number(); | |
| return $shipment; | |
| } | |
| add_filter('ac_wc_unifaun_shipment_data', 'redlight_unifaun_receiver_reference', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment