Advertisements

kses_init

Definition:
function kses_init() {}

Sets up most of the Kses filters for input form content.
If you remove the kses_init() function from ‘init’ hook and ‘set_current_user’ (priority is default), then none of the Kses filter hooks will be added.

Source code

function kses_init() {

	kses_remove_filters();



	if (current_user_can('unfiltered_html') == false)

		kses_init_filters();

}

2235

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: