woocommerce_countries_allowed_countries filter-hookWC 3.3.0

Filter the list of allowed selling countries.

Usage

add_filter( 'woocommerce_countries_allowed_countries', 'wp_kama_woocommerce_countries_allowed_filter' );

/**
 * Function for `woocommerce_countries_allowed_countries` filter-hook.
 * 
 * @param array $countries 
 *
 * @return array
 */
function wp_kama_woocommerce_countries_allowed_filter( $countries ){

	// filter...
	return $countries;
}
$countries(array)
-

Changelog

Since 3.3.0 Introduced.

Where the hook is called

WC_Countries::get_allowed_countries()
woocommerce_countries_allowed_countries
woocommerce/includes/class-wc-countries.php 318
return apply_filters( 'woocommerce_countries_allowed_countries', $countries );

Where the hook is used in WooCommerce

Usage not found.