WordPress at Your Fingertips
function is not described

WC_Countries::trim_formatted_address_line() private WC 1.0

Trim white space and commas off a line.

{} It's a method of the class: WC_Countries{}

No Hooks.

Return

String.

Usage

// private - for code of main (parent) class only
$result = $this->trim_formatted_address_line( $line );
$line(string) (required)
Line.

Code of WC_Countries::trim_formatted_address_line() WC 5.6.0

private function trim_formatted_address_line( $line ) {
	return trim( $line, ', ' );
}