woocommerce_countries_allowed_countries хук-фильтрWC 1.0

Get countries that the store sells to.

Использование

add_filter( 'woocommerce_countries_allowed_countries', 'wp_kama_woocommerce_countries_allowed_filter' );

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

	// filter...
	return $countries;
}
$countries
-

Где вызывается хук

WC_Countries::get_allowed_countries()
woocommerce_countries_allowed_countries
woocommerce/includes/class-wc-countries.php 250
return apply_filters( 'woocommerce_countries_allowed_countries', $this->countries );
woocommerce/includes/class-wc-countries.php 263
return apply_filters( 'woocommerce_countries_allowed_countries', $all_except_countries );
woocommerce/includes/class-wc-countries.php 277
return apply_filters( 'woocommerce_countries_allowed_countries', $countries );

Где используется хук в WooCommerce

Использование не найдено.