Last active
July 17, 2020 09:02
-
-
Save zorem/7d7d8bfa216e486e9040df6e4a138e04 to your computer and use it in GitHub Desktop.
Filter for update tracking information when add tracking from orders list and single order page
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('tracking_info_args','tracking_info_args_fun',10,2); | |
function tracking_info_args_fun($args,$order_id){ | |
if($args['tracking_provider'] == 'australia-post'){ | |
$args['tracking_number'] = '0003006985494006020994'; | |
} | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment