Last active
March 9, 2016 02:45
-
-
Save bentasm1/76dd5d4271bc07261028 to your computer and use it in GitHub Desktop.
WC Vendors Pro add custom shipping providers
This file contains 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
/* WC Vendors Pro add custom shipping providers */ | |
add_filter ('wcv_shipping_providers_list', 'custom_wcv_shipping_providers_list'); | |
function custom_wcv_shipping_providers_list() { | |
$shipping_providers = array( | |
'Country Provider is For or Custom Heading' => array( | |
'Shipping Company #1' => 'http://their-website-for-tracking.com/%1$s', | |
'Shipping Company #2' => 'https://another-website-for-tracking.com/?tracking=%1$s', | |
), | |
); | |
return $shipping_providers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment