woocommerce_countries_shipping_countries filter-hookWC 3.3.0

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

WC_Countries::get_shipping_countries()
woocommerce_countries_shipping_countries
woocommerce/includes/class-wc-countries.php 355
return apply_filters( 'woocommerce_countries_shipping_countries', $countries );

Where the hook is used in WooCommerce

Usage not found.