WordPress at Your Fingertips
function is not described

WC_Countries::get_countries() public WC 1.0

Get all countries.

{} It's a method of the class: WC_Countries{}

Return

Array.

Usage

$WC_Countries = new WC_Countries();
$WC_Countries->get_countries();

Code of WC_Countries::get_countries() WC 5.6.0

public function get_countries() {
	if ( empty( $this->countries ) ) {
		$this->countries = apply_filters( 'woocommerce_countries', include WC()->plugin_path() . '/i18n/countries.php' );
		if ( apply_filters( 'woocommerce_sort_countries', true ) ) {
			wc_asort_by_locale( $this->countries );
		}
	}

	return $this->countries;
}