wpcf7_strip_newline() CF7 1.0
Хуков нет.
Возвращает
Null. Ничего.
Использование
wpcf7_strip_newline( $str );
- $str (обязательный)
- -
Код wpcf7_strip_newline() wpcf7 strip newline CF7 5.4
function wpcf7_strip_newline( $str ) {
$str = (string) $str;
$str = str_replace( array( "\r", "\n" ), '', $str );
return trim( $str );
}