MadtownLems
Member
Posted 10 months ago #
I think that this plugin could benefit from the following feature: the ability easily restrict some Options to Network admins only.
$options[] = array("name" => "My network admin only option.",
"networkadminonly" => true,
...);
Very easy then, while doing form display and processing to quickly check:
if ($option['networkadminonly'] && is_super_admin()) { // do this option }
Thoughts? :)
Thanks!
It currently does a check for current_user_can( 'edit_theme_options' ).
If you don't want the users on your network to be able to edit theme options, I think it makes more sense to remove that capability from them.
There's several user roles plugins that might help you set that:
http://wordpress.org/extend/plugins/members/
MadtownLems
Member
Posted 1 day ago #
Devin - thanks for the reply.
The problem with what you've suggested is that it bundles control of ALL theme options together under one capability. Oh well, I'll figure something out :P. Cheers