wpcf7_kses()
Sanitizes content for allowed HTML tags for the specified context.
Хуков нет.
Возвращает
Строку
. Filtered text with allowed HTML tags and attributes intact.
Использование
wpcf7_kses( $input, $context );
- $input(строка) (обязательный)
- Content to filter.
- $context(строка)
- Context used to decide allowed tags and attributes.
По умолчанию: 'form'
Код wpcf7_kses() wpcf7 kses CF7 6.0.5
function wpcf7_kses( $input, $context = 'form' ) { $output = wp_kses( $input, wpcf7_kses_allowed_html( $context ) ); return $output; }