Created
May 29, 2020 13:41
-
-
Save hedqvist/485e0e17086f4ace451e10b97992a7fa to your computer and use it in GitHub Desktop.
Unifaun - PickupBooking
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 - Book Pickup | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 4.1.1 | |
| */ | |
| function redlight_unifaun_pickup_booking( $shipment, $order ) { | |
| $shipment['service']['pickupBooking'] = true; | |
| return $shipment; | |
| } | |
| add_filter('ac_wc_unifaun_shipment_data', 'redlight_unifaun_pickup_booking', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment