WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following lines of code that add the settings link and setup for my plugin:

add_action('admin_menu', array(&$this, 'admin_settings_menu')); // Add menu to options
add_action('admin_init', array(&$this, 'admin_settings_init')); // Add admin init functions

Now because of the nature of my plugin if the plugin is Network Installed then the settings should only be available to the network admin not the individual site admins.

Is there a way to check if the plugin is Network Installed so I can wrap an if statement round it?

share|improve this question
up vote 6 down vote accepted

You can use is_plugin_active_for_network( $plugin )

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.