开发者 |
auswebhosting
drewsymorris |
---|---|
更新时间 | 2014年4月15日 12:49 |
PHP版本: | 3.0.1 及以上 |
WordPress版本: | 3.8.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/
directoryThis 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
$myrole = new RemoveKses(get_role("editor"));
.unfiltered_html
capability to the role, if it doesn't already have it.content_filtered_save_pre
and runs kses_remove_filters()
before content is sent to the database.