WordPress.org

Forums

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

  1. lenasterg
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better WordPress Minify
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

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