kses_init()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
kses_init()
Описание
Сначала удаляет все фильтры KSES на случай, если текущему пользователю не требуется фильтрация содержимого через KSES. Если у пользователя нет права доступа unfiltered_html, фильтры KSES добавляются.
Оригинал (английский)
First removes all of the KSES filters in case the current user does not need to have KSES filter the content. If the user does not have unfiltered_html capability, then KSES filters are added.
Исходный код
wp-includes/kses.php:2522
function kses_init() {
kses_remove_filters();
if ( ! current_user_can( 'unfiltered_html' ) ) {
kses_init_filters();
}
}
История изменений
| Версия | Описание |
|---|---|
| 2.0.0 | Introduced. |

