kses_remove_filters

Definition:
function kses_remove_filters() {}

Removes all Kses input form content filters.
A quick procedural method to removing all of the filters that kses uses for content in WordPress Loop.

Source code

function kses_remove_filters() {

	// Normal filtering.

	remove_filter('pre_comment_content', 'wp_filter_kses');

	remove_filter('title_save_pre', 'wp_filter_kses');



	// Post filtering

	remove_filter('content_save_pre', 'wp_filter_post_kses');

	remove_filter('excerpt_save_pre', 'wp_filter_post_kses');

	remove_filter('content_filtered_save_pre', 'wp_filter_post_kses');

}

2239

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: