WC_Shipping_Zone::generate_zone_name()
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() 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; }