WC_Countries::trim_formatted_address_line
Trim white space and commas off a line.
Method of the class: WC_Countries{}
No Hooks.
Returns
String.
Usage
// private - for code of main (parent) class only $result = $this->trim_formatted_address_line( $line );
- $line(string) (required)
- Line.
WC_Countries::trim_formatted_address_line() WC Countries::trim formatted address line code WC 10.6.2
private function trim_formatted_address_line( $line ) {
return trim( $line, ', ' );
}