Removing admin menu?

  • Matt Boutet
    # 5 years ago

    I don’t want the ‘miniOrange API Authentication’ menu item to show up in the sidebar in the WP-admin, but remove_action('admin_menu', 'mo_api_auth_admin_menu'); doesn’t remove the item, regardless of which priority I pass in. Is there an accepted way to handle this?

    (side note: This is NOT related to any of the available ‘forums’ but I can’t submit without one, so apologies if this is the wrong place)

    miniOrange
    # 5 years ago

    Hi Matt,

    Thanks for reaching out to us.

    You can remove the ‘miniOrange API Authentication’ menu item from the WP-admin sidebar, just paste the below code in your function.php file.

    add_action( 'admin_init', 'my_remove_menus' );
    
    function my_remove_menus() {
    	/* Use remove_menu_page() and remove_submenu_page() here. */
    	remove_menu_page('mo_api_authentication_settings');
    }

    Thanks
    Team miniOrange

    Matt Boutet
    # 5 years ago

    Thanks,

    That was exactly what I was looking for.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.