How do I disabled/hide settings for blog administrators?
-
I am looking for a way to selectively hide or disable the settings for blog administrators on by WordPress Multisite Network.
I don’t want to disable whole pages of settings however so I can’t simply modify the administrator role to not include those…
I have thought of a few ideas but with much of this aspect of Core not being pluggable I am out of ideas, please help!
- Use
ob_start()
to parse the output and regex the fields into oblivion however that is a brutal and easily broken hack and there aren’t and hooks at the top and bottom of the settings pages. - Use CSS to hide the GUI and filters on
update_option()
but this isn’t really possible because there are no classes or IDs on any of the fields. - Use to select input[name=xxx] but that isn’t supported on all browsers and I wouldn’t be able prevent editing unless I hid the field which would make it
- Use JS to find the input[name=xxx] and navigate backup the DOM to the parent list item, this would work but I am not happy with the JS requirement.
Any help would be great, it will make its way into a new plugin at some point if anyone has an idea although right now I am sersiously considering speaking with core devs about adding this feature because it seems obvious you might want default settings in Site Admin which are either defaults or locked settings which hide from the blog admins.
- Use
- The topic ‘How do I disabled/hide settings for blog administrators?’ is closed to new replies.