kses_remove_filters
函数
kses_remove_filters ( No parameters )
- 定义位置
-
-
wp-includes/kses.php
, line 2217
-
wp-includes/kses.php
- 引入
- 2.0.6
- 弃用
- –
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 the `kses_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).
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' ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。