WC_Countries::get_continents()publicWC 1.0

Get all continents.

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

Hooks from the method

Return

Array.

Usage

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

Code of WC_Countries::get_continents() WC 6.7.0

public function get_continents() {
	if ( empty( $this->continents ) ) {
		$this->continents = apply_filters( 'woocommerce_continents', include WC()->plugin_path() . '/i18n/continents.php' );
	}

	return $this->continents;
}