• I love that you factored in setting the facebook credentials in wp-config; it makes this great for multisite instances where individual site owners shouldn’t all have to register their own facebook apps and manage credentials.

    However, it’s still visible to Site Administrators and can be very confusing to those who aren’t overly tech savvy. We try to keep the dashboard as simplified as possible for these people. Would you consider one of the following options?

    1) If MultiSite and settings are defined in wp-config.php, simply don’t show this form here at all.
    2) If MultiSite and settings are defined in wp-config.php, only show this form to those who can manage_network.
    3) Create a filter for whether or not the disabled settings form is displayd so people can easily hide this screen if it doesn’t make sense in their environment. (Personally, I’d use manage_network.)

    Thanks again for the great plugin. 5 stars even without the above change!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ayesh Karunaratne

    (@ayeshrajans)

    Thanks for the feedback and the suggestions, @madtownlems.

    I think it will be more straight forward if there was another PHP constant that can be defined in the wp-config.php file, for example, OEMBED_PLUS_HIDE_ADMIN_FORM, that will make the plugin not add the setting form at all if set to true. This way, the site administrators who manage the wp-config.php can decide if the plugin should be completely silent.

    Plugin Author Ayesh Karunaratne

    (@ayeshrajans)

    Let me know if this would work. I will release a new version with this change, and some code cleanup baked in.

    Thread Starter Jason LeMahieu (MadtownLems)

    (@madtownlems)

    That certainly meets MY needs, and likely the needs of many others. I can’t imagine that too many people need fine grained control over the visibility.

    Thanks! Looking forward to the new version

    Plugin Author Ayesh Karunaratne

    (@ayeshrajans)

    Thanks for the feedback – I just cut v1.4 release with this feature.

    
    define('OEMBED_PLUS_HIDE_ADMIN_UI', true);
    

    Snippet above in wp-config.php (or anywhere else for that matter) should hide the admin UI. It hides the UI even if the API key and secret are not set in the wp-config.php file, which makes it a toggle to hide the form after setting the API key from the UI.

    Thread Starter Jason LeMahieu (MadtownLems)

    (@madtownlems)

    Perfect!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature Request: Modify who can see the Writing Settings (when set using config)’ is closed to new replies.