Skip to content

Instantly share code, notes, and snippets.

@WooForce
Created August 25, 2016 06:31
Show Gist options
  • Save WooForce/6b9c085ffa2f23a3edd8d5f2f9b134dc to your computer and use it in GitHub Desktop.
Save WooForce/6b9c085ffa2f23a3edd8d5f2f9b134dc to your computer and use it in GitHub Desktop.
FedEx-Shipping phone number in the lable
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