wpseek.com
A WordPress-centric search engine for devs and theme authors
kses_remove_filters › WordPress Function
Since2.0.6
Deprecatedn/a
› kses_remove_filters ( No parameters )
Defined at: |
|
Codex: |
Removes all KSES input form content filters.
A quick procedural method to removing all of the filters that KSES uses for content in WordPress Loop. Does not remove thekses_init()
function from {@see 'init'} hook (priority is
default). Also does not remove kses_init()
function from {@see 'set_current_user'}
hook (priority is also default).Related Functions: remove_filter, remove_all_filters, _wp_footnotes_remove_filters, kses_init_filters, _fetch_remote_file
Source
function kses_remove_filters() { // Normal filtering. remove_filter( 'title_save_pre', 'wp_filter_kses' ); // Comment filtering. remove_filter( 'pre_comment_content', 'wp_filter_post_kses' ); remove_filter( 'pre_comment_content', 'wp_filter_kses' ); // Global Styles filtering. remove_filter( 'content_save_pre', 'wp_filter_global_styles_post', 9 ); remove_filter( 'content_filtered_save_pre', 'wp_filter_global_styles_post', 9 ); // Post filtering. remove_filter( 'content_save_pre', 'wp_filter_post_kses' ); remove_filter( 'excerpt_save_pre', 'wp_filter_post_kses' ); remove_filter( 'content_filtered_save_pre', 'wp_filter_post_kses' ); }