_acf_should_sanitize_internal_post_settings()
Checks whether the settings of an ACF internal post being saved need sanitizing, because the current user can't use unfiltered HTML and sanitization isn't skipped with acf_skip_internal_post_sanitization().
Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.
Хуков нет.
Возвращает
boolean.
Использование
_acf_should_sanitize_internal_post_settings();
Список изменений
| С версии 6.8.11 | Введена. |
Код _acf_should_sanitize_internal_post_settings() acf should sanitize internal post settings ACF 6.8.11
function _acf_should_sanitize_internal_post_settings() {
return ! acf_get_data( 'skip_internal_post_sanitization' ) && ! current_user_can( 'unfiltered_html' );
}