kses_init

Sets up most of the Kses filters for input form content.

Description

kses_init(); 

If you remove the kses_init() function from hook and (priority is default), then none of the Kses filter hooks will be added.

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.


Usage

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

Defined (1)

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

/wp-includes/kses.php  
  1. function kses_init() { 
  2.  
  3. if ( ! current_user_can( 'unfiltered_html' ) ) {