woocommerce_sort_countries

woocommerce_sort_countries

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_sort_countries') is found 1 times:

  • /includes/class-wc-countries.php line 71
    			 *
    			 * @param array $countries
    			 */
    			$this->geo_cache['countries'] = apply_filters( 'woocommerce_countries', include WC()->plugin_path() . '/i18n/countries.php' );
    			if ( apply_filters( 'woocommerce_sort_countries', true ) ) {
    				wc_asort_by_locale( $this->geo_cache['countries'] );
    			}
    		}
    
    		return $this->geo_cache['countries'];
    	}