kses_init_filters

Adds all Kses input form content filters.

Description

kses_init_filters(); 

All hooks have default priority. The wp_filter_kses() function is added to the pre_comment_content and title_save_pre, hooks.

The wp_filter_post_kses() function is added to the content_save_pre, 'excerpt_save_pre', and content_filtered_save_pre hooks.


Usage

  1. if ( !function_exists( 'kses_init_filters' ) ) { 
  2. require_once ABSPATH . WPINC . '/kses.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = kses_init_filters(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/kses.php  
  1. function kses_init_filters() { 
  2. // Normal filtering 
  3.  
  4. // Comment filtering 
  5. if ( current_user_can( 'unfiltered_html' ) ) 
  6. else 
  7.  
  8. // Post filtering