_network_admin_menu WordPress Action Hook
The network_admin_menu hook allows a plugin to add new items to the Network Administration Menu in the WordPress Dashboard. This hook is only available to network admins, and only on multisite installations of WordPress. This hook is useful for plugin developers who need to add network-level options to their plugin. By using this hook, your plugin can add new menus and sub-menus to the Network Administration Menu, giving network admins access to your plugin's settings and options.
do_action( '_network_admin_menu' ) #
Fires before the administration menu loads in the Network Admin.
Description
The hook fires before menus and sub-menus are removed based on user privileges.
More Information
This action could be used to modify the menu in the network admin panel. It runs before the basic network admin panel menu structure is complete. It is more usual to use the network_admin_menu action to modify the menu after it is complete.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |