WordPress at Your Fingertips
function is not described

WC_Countries::get_continents() public WC 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 5.7.1

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

	return $this->continents;
}