WordPress at Your Fingertips
function is not described

WC_Shipping_Zone::generate_zone_name() protected WC 1.0

Generate a zone name based on location.

{} It's a 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();

Code of WC_Shipping_Zone::generate_zone_name() WC 5.7.1

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

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

	return $zone_name;
}