Options Framework
Network Admin restricted Options? (3 posts)

  1. 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? :)

  2. Devin Price
    Plugin Author

    Posted 4 years ago #

    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:

  3. 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Options Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by Jason Lemahieu (MadtownLems)
  • Latest reply from Jason Lemahieu (MadtownLems)
  • This topic is not resolved
  • WordPress version: 3.2.1