function kses_init_filters() {}

Adds all Kses input form content filters.
All hooks have default priority. The wp_filter_kses() function is added to the ‘pre_comment_content’ and ‘title_save_pre’ hooks.

Source code

function kses_init_filters() {

	// Normal filtering.

	add_filter('pre_comment_content', 'wp_filter_kses');

	add_filter('title_save_pre', 'wp_filter_kses');

	// Post filtering

	add_filter('content_save_pre', 'wp_filter_post_kses');

	add_filter('excerpt_save_pre', 'wp_filter_post_kses');

	add_filter('content_filtered_save_pre', 'wp_filter_post_kses');



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: