acf_allow_unfiltered_html() ACF 5.7.10
Returns true if the current user is allowed to save unfiltered HTML.
Хуки из функции
Возвращает
true/false.
Использование
acf_allow_unfiltered_html();
Список изменений
С версии 5.7.10 | Введена. |
Код acf_allow_unfiltered_html() acf allow unfiltered html ACF 5.9.1
function acf_allow_unfiltered_html() {
// Check capability.
$allow_unfiltered_html = current_user_can('unfiltered_html');
/**
* Filters whether the current user is allowed to save unfiltered HTML.
*
* @date 9/1/19
* @since 5.7.10
*
* @param bool allow_unfiltered_html The result.
*/
return apply_filters( 'acf/allow_unfiltered_html', $allow_unfiltered_html );
}