wpcf7_strip_quote_deep()CF7 1.0

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() CF7 6.0.1

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;
	}
}