is_network_only_plugin


is_network_only_plugin ( $plugin )

Parameters:
  • (string) plugin Path to the plugin file relative to the plugins directory.
Returns:
  • (bool) True if plugin is network only, false otherwise.
Defined at:

Description

Checks for "Network: true" in the plugin header to see if this should be activated only as a network wide plugin. The plugin would also work when Multisite is not enabled.Checks for "Site Wide Only: true" for backward compatibility.

Related Functions

is_network_admin, get_network_option, add_network_option, wp_get_active_network_plugins, update_network_option

Top Google Results

User discussions

wpseek mobile