Support » Plugin: Options Framework » Network Admin restricted Options?

  • 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? 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Devin Price


    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:

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Network Admin restricted Options?’ is closed to new replies.