wpcf7_strip_quote() CF7 1.0
Хуков нет.
Возвращает
Null. Ничего.
Использование
wpcf7_strip_quote( $text );
- $text (обязательный)
- -
Код wpcf7_strip_quote() wpcf7 strip quote CF7 5.4
function wpcf7_strip_quote( $text ) {
$text = trim( $text );
if ( preg_match( '/^"(.*)"$/s', $text, $matches ) ) {
$text = $matches[1];
} elseif ( preg_match( "/^'(.*)'$/s", $text, $matches ) ) {
$text = $matches[1];
}
return $text;
}