acf/allow_unfiltered_html
Filters whether the current user is allowed to save unfiltered HTML.
Использование
add_filter( 'acf/allow_unfiltered_html', 'wp_kama_acf_allow_unfiltered_html_filter' ); /** * Function for `acf/allow_unfiltered_html` filter-hook. * * @param bool $allow_unfiltered_html allow_unfiltered_html The result. * * @return bool */ function wp_kama_acf_allow_unfiltered_html_filter( $allow_unfiltered_html ){ // filter... return $allow_unfiltered_html; }
- $allow_unfiltered_html(true|false)
- allow_unfiltered_html The result.
Список изменений
С версии 5.7.10 | Введена. |
Где вызывается хук
acf/allow_unfiltered_html
acf/includes/acf-user-functions.php 118
return apply_filters( 'acf/allow_unfiltered_html', $allow_unfiltered_html );