woocommerce_continents filter-hookWC 2.6.0

Allows filtering of continents in WC.

Usage

add_filter( 'woocommerce_continents', 'wp_kama_woocommerce_continents_filter' );

/**
 * Function for `woocommerce_continents` filter-hook.
 * 
 * @param array[array] $continents 
 *
 * @return array[array]
 */
function wp_kama_woocommerce_continents_filter( $continents ){

	// filter...
	return $continents;
}
$continents(array[array])
-

Changelog

Since 2.6.0 Introduced.

Where the hook is called

WC_Countries::get_continents()
woocommerce_continents
woocommerce/includes/class-wc-countries.php 104
$this->geo_cache['continents'] = apply_filters( 'woocommerce_continents', include WC()->plugin_path() . '/i18n/continents.php' );

Where the hook is used in WooCommerce

Usage not found.