This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Remove Kses


This plugin will disable WordPress KSES filtering for the WordPress editor role. It is fully compatible with MU.

You can customise this plugin to disable KSES for any WordPress role. Please refer to the plugin FAQ for more information.

Note: Disabling KSES for the editor role is unnecessary in regular WordPress and is only intended for MU installations (where it is enabled).

Company Website


How do I add more roles?

This plugin can be easily customised to remove KSES for more than just the editor role.
Simply open the removekses.php file and uncomment the relevant lines:

$editor       = new RemoveKses(get_role("editor")); // Remove KSES for Editor roles
$author       = new RemoveKses(get_role("author")); // Remove KSES for Author roles
$contributor  = new RemoveKses(get_role("contributor")); // Remove KSES for contributor roles
$subscriber   = new RemoveKses(get_role("subscriber")); // Remove KSES for subscriber roles
How does it work?
  • Fetches the role to be modified via the constructor $myrole = new RemoveKses(get_role("editor"));.
  • Adds the unfiltered_html capability to the role, if it doesn’t already have it.
  • Hooks content_filtered_save_pre and runs kses_remove_filters() before content is sent to the database.



  • Initial Commit

Contributors & Developers

This is open source software. The following people have contributed to this plugin.


Browse the code