wpcf7_kses_allowed_html
Использование
add_filter( 'wpcf7_kses_allowed_html', 'wp_kama_wpcf7_kses_allowed_html_filter', 10, 2 ); /** * Function for `wpcf7_kses_allowed_html` filter-hook. * * @param $context] * @param $context * * @return */ function wp_kama_wpcf7_kses_allowed_html_filter( $context], $context ){ // filter... return $context]; }
- $context]
- -
- $context
- -
Где вызывается хук
wpcf7_kses_allowed_html
contact-form-7/includes/formatting.php 365-369
return apply_filters( 'wpcf7_kses_allowed_html', $allowed_tags[$context], $context );
contact-form-7/includes/formatting.php 494-498
return apply_filters( 'wpcf7_kses_allowed_html', $allowed_tags[$context], $context );