kses_init()WP 2.0.0

Sets up most of the KSES filters for input form content.

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.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

kses_init();

Список изменений

С версии 2.0.0 Введена.

Код kses_init() WP 6.5.2

function kses_init() {
	kses_remove_filters();

	if ( ! current_user_can( 'unfiltered_html' ) ) {
		kses_init_filters();
	}
}