WordPress.org

Support

Support » Plugins and Hacks » Multisite: How can I show App ID/Secret fields to super admin only?

Multisite: How can I show App ID/Secret fields to super admin only?

  • We use only one Facebook app across our multisite network. We have a default setting where when a new blog is created, Facebook App ID and Secret are automatically set up in Facebook plugin.

    DESIRABLE BEHAVIOR
    Blogs admins should be able tweak options to their liking but should not be able to see App ID and Secret fields. Only super admin should be able to see them.

    WHAT I TRIED
    I hid the output of fb_get_main_settings_fields() to all but super admin. The problem is, when admins who don’t see main settings save their Facebook settings, the plugin reset and App ID & Secret are deleted.

    Seems to me like Javascript is used to get those values from the form everytime settings are saved. How can I get this to work? Where admins can change and save settings without being able to see App ID and Secret?

    http://wordpress.org/extend/plugins/facebook/

  • The topic ‘Multisite: How can I show App ID/Secret fields to super admin only?’ is closed to new replies.