Switch language

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




kses_init [ WordPress Function ]

kses_init ( No parameters )
Uses:
Defined at:



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

If you remove the kses_init() function from 'init' hook and 'set_current_user' (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.

Source


<?php
function kses_init() {
    
kses_remove_filters();

    if (
current_user_can('unfiltered_html') == false)
        
kses_init_filters();
}
?>

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