woocommerce_countries_shipping_countries
Filter the list of allowed selling countries.
Usage
add_filter( 'woocommerce_countries_shipping_countries', 'wp_kama_woocommerce_countries_shipping_filter' ); /** * Function for `woocommerce_countries_shipping_countries` filter-hook. * * @param array $countries * * @return array */ function wp_kama_woocommerce_countries_shipping_filter( $countries ){ // filter... return $countries; }
- $countries(array)
- -
Changelog
Since 3.3.0 | Introduced. |
Where the hook is called
woocommerce_countries_shipping_countries
woocommerce/includes/class-wc-countries.php 357
return apply_filters( 'woocommerce_countries_shipping_countries', $countries );