Created
August 25, 2016 06:31
-
-
Save WooForce/6b9c085ffa2f23a3edd8d5f2f9b134dc to your computer and use it in GitHub Desktop.
FedEx-Shipping phone number in the lable
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
add_filter('wf_fedex_request','my_call_back', 10, 2 ); | |
function my_call_back($request,$order){ | |
$phone = !empty($order->shipping_phone) ? $order->shipping_phone : $order->billing_phone; | |
$request['RequestedShipment']['Recipient']['Contact']['PhoneNumber'] = $phone; | |
return $request; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment