WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
Multisite: How can I show App ID/Secret fields to super admin only? (1 post)

  1. polokina
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic