Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




kses_init_filters [ WordPress Function ]

kses_init_filters ( No parameters )
Uses:
Defined at:



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.

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

Source


<?php
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');
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics