WC_Countries::trim_formatted_address_line() private WC 1.0
Trim white space and commas off a line.
{} Это метод класса: WC_Countries{}
Хуков нет.
Возвращает
Строку.
Использование
// private - только в коде основоного (родительского) класса $result = $this->trim_formatted_address_line( $line );
- $line(строка) (обязательный)
- Line.
Код WC_Countries::trim_formatted_address_line() WC Countries::trim formatted address line WC 5.0.0
private function trim_formatted_address_line( $line ) {
return trim( $line, ', ' );
}