wpcf7_strip_quote_deep()
Navigates through an array, object, or scalar, and strips quote characters surrounding the each value.
Хуков нет.
Возвращает
Разное. Processed value.
Использование
wpcf7_strip_quote_deep( $input );
- $input(разное) (обязательный)
- The array or string to be processed.
Код wpcf7_strip_quote_deep() wpcf7 strip quote deep CF7 6.1.4
function wpcf7_strip_quote_deep( $input ) {
if ( is_string( $input ) ) {
return wpcf7_strip_quote( $input );
}
if ( is_array( $input ) ) {
$result = array();
foreach ( $input as $key => $text ) {
$result[$key] = wpcf7_strip_quote_deep( $text );
}
return $result;
}
}