Unfiltered html on wordpress multisites for non-super admin users
-
I’d like to grant the ability to post unfiltered html (such as <script> tags) to users without Super Admin level access on my WordPress multisite instance.
I’m able to use logic like this in theme functions to grant the ability to lower-level users:
add_action(‘plugins_loaded’, function () {
if (is_user_logged_in() && current_user_can(‘my_test_role’)) {
kses_remove_filters(); // Disable KSES sanitization for my_test_role role
}
}, 1);But it only works on the main site! In my multisite instances, the lower-level users still cannot do this. I tried creating an mu-plugin, modifying the specific child theme functions, and even modifying the wp-config in various ways, but I cannot figure out how to allow this for non-Super Admin users.
Is this wordpress working as intended? If so, is there a way to get around this? If not, what option could I use that I haven’t already considered?
- The topic ‘Unfiltered html on wordpress multisites for non-super admin users’ is closed to new replies.