Skip to content

Instantly share code, notes, and snippets.

@bentasm1
Created June 22, 2016 20:19
Show Gist options
  • Save bentasm1/183f1ff43fdf35ff372b5a3aa40bb1cf to your computer and use it in GitHub Desktop.
Save bentasm1/183f1ff43fdf35ff372b5a3aa40bb1cf to your computer and use it in GitHub Desktop.
WC Vendors Pro Custom Countries List
/* 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