WordPress.org

Ready to get started?Download WordPress

Forums

Options Framework
Network Admin restricted Options? (3 posts)

  1. Jason Lemahieu (MadtownLems)
    Member
    Posted 2 years 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!

  2. Devin Price
    Member
    Plugin Author

    Posted 2 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:
    http://wordpress.org/extend/plugins/members/

  3. Jason Lemahieu (MadtownLems)
    Member
    Posted 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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