I'm trying add menu page in multisite (settings will be global for all blogs).

Current code created in plugin and activated in network

function wpdocs_register_my_custom_menu_page() {
        __( 'Custom Menu Title', 'textdomain' ),
        'custom menu',
add_action( 'admin_menu', 'wpdocs_register_my_custom_menu_page' );

But it show only in blog menu, I think should be different action hook, maybe someone can help me ?

  • What do you mean by "show only in blog menu"? – jdm2112 May 23 '16 at 14:58
  • in multisite exist network menu and blogs menu – Nefro May 23 '16 at 18:31

I believe you're looking for the network_admin_menu hook.

The Codex page for network_admin_menu has the following example:

add_action('network_admin_menu', 'function_name');
function function_name() {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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