WC_Shipping_Zone::generate_zone_name()protectedWC 1.0

Generate a zone name based on location.

Method of the class: WC_Shipping_Zone{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->generate_zone_name();

WC_Shipping_Zone::generate_zone_name() code WC 9.3.3

protected function generate_zone_name() {
	$zone_name = $this->get_formatted_location();

	if ( empty( $zone_name ) ) {
		$zone_name = __( 'Zone', 'woocommerce' );
	}

	return $zone_name;
}