acf_allow_unfiltered_html()
acf_allow_unfiltered_html
Returns true if the current user is allowed to save unfiltered HTML.
Хуки из функции
Возвращает
boolean.
Использование
acf_allow_unfiltered_html();
Список изменений
| С версии 5.7.10 | Введена. |
Код acf_allow_unfiltered_html() acf allow unfiltered html ACF 6.8.8
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 );
}