WordPress.org

Ready to get started?Download WordPress

Forums

Options Framework
Assistance with creating some options as Network Admin only? (1 post)

  1. Jason Lemahieu (MadtownLems)
    Member
    Posted 8 months ago #

    Hello. I asked about this 2 years ago, but it's come up again and I was hoping you could help point me in the right direction :)

    http://wordpress.org/support/topic/network-admin-restricted-options?replies=3

    Your replied suggestion didn't address my situation, because it still put all of the Options as editable or not editable by Site Admins, and I'm looking to do something where Site Admins have access to SOME of the options, but not all of them.

    I've been investigating your code quite a bit, but I can't find a way to extend it with Filters without modifying your plugin, and was hoping you might have some ideas.

    I thought I might be able to filter the theme options that are rendered to the user, and remove any that were set with something like 'networkadminonly' from display if the user was only a Site Admin, then, just prior to saving, filter the theme options again to fetch any such options and make sure they are preserved during the save. However, I don't see such filters. (I found one to modify the Options file _location_, but not one to actually adjust the Options array itself.)

    I believe that you do NOT want to add this 'networkadminonly' parameter to your plugin, but am hoping you might have suggestions to accomplish this in another way.

    Thanks!

    http://wordpress.org/plugins/options-framework/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 8 months ago by Jason Lemahieu (MadtownLems)
  • This topic is not resolved
  • WordPress version: 3.7.1

Tags

No tags yet.