Support » Plugins » remove kses filter

  • Is there a way to remove kses filter via plugin, without hacking code?

    I tryed
    remove_filter(‘content_save_pre’, ‘wp_filter_post_kses’);

    But it’s not working, and wp_filter_post_kses is still called

    I also tryed to use


    But nothing happened.

    I need to extend allowed protocols, but the call at wp_kses (inside wp_filter_post_kses) use the original array ($allowed_protocols) that is not global, so to do that I was tryng to override the original call.

    Also a way to extend $allowed_protocols is a solution for me..


Viewing 3 replies - 1 through 3 (of 3 total)
  • Try using htmLawed, a highly modified version of the kses filter with many extra features.

    Me too, I also am trying to make a plugin to work. So far so bad, remove_filter does’t work at all. Here is a little bragging: Can’t make plugin to remove KSES filter

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    remove_filter would work, if you called it in the right place. kses is not turned on until the init filter.

    Anyway, this should work. The key is to delay it until after the init action hook enables kses.

    function disable_kses_content() {
    remove_filter('content_save_pre', 'wp_filter_post_kses');
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove kses filter’ is closed to new replies.