WordPress.org

Ready to get started?Download WordPress

Forums

Better WordPress Minify
Multisite: Suggestion for Show settings pages only to network admins (1 post)

  1. lenasterg
    Member
    Posted 8 months ago #

    Hi.
    Thanks for the great plugin.

    I use it in a multisite installation and I didn't want the admins of each blog to see the Settings->BWM settings page.
    In order to achieve that I made a change and though I share it.

    So in file bwp-minify/bwp-minify.php from line 25 change the function bwp_minify_init_admin() to the following:

    function bwp_minify_init_admin() {
        global $bwp_minify;
        if (current_user_can('edit_plugins')) {
            $bwp_minify->init_admin();
        }
    }

    This way only the super administrator will see the BWM setting link.

    http://wordpress.org/plugins/bwp-minify/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 8 months ago by lenasterg
  • This topic is not a support question
  • WordPress version: 3.5.2