Last active
February 26, 2020 09:19
-
-
Save hedqvist/31f2fe739e7f6ccac3cf88b9045f3cd5 to your computer and use it in GitHub Desktop.
Unifaun - Pacsoft Track and Trace URL
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 - Sets Tracking URL to Pacsoftonline | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 3.9.2 | |
| */ | |
| function redlight_pacsoft_tracking_base_url( $url, $order_id ) { | |
| $url = 'https://www.pacsoftonline.com/ext.po'; | |
| return $url; | |
| } | |
| add_filter('ac_wc_unifaun_track_and_trace_base_url', 'redlight_pacsoft_tracking_base_url', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment