wpseek.com
WordPress开发者和主题制作者的搜索引擎



kses_init › WordPress Function

Since2.0.0
已弃用n/a
kses_init ( 没有参数 )
定义在:
文档:

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.


源码

function kses_init() {
	kses_remove_filters();

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