Created
June 22, 2016 20:19
-
-
Save bentasm1/183f1ff43fdf35ff372b5a3aa40bb1cf to your computer and use it in GitHub Desktop.
WC Vendors Pro Custom Countries List
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
/* WC Vendors Pro -- Provides a custom list of countries, instead of all of them. The syntax */ | |
/* on this is pretty easy, just make sure you have the correct 2 letter country code */ | |
/* This example will show only UK and USA and ignore all others */ | |
add_filter('wcv_countries_list', 'custom_wcv_countries_list'); | |
function custom_wcv_countries_list(){ | |
$args = array( | |
'GB' => __( 'United Kingdom (UK)', 'wcvendors-pro' ), | |
'US' => __( 'United States (US)', 'wcvendors-pro' ) | |
); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment