Removing admin menu?

  • Matt Boutet
    # 3 weeks, 3 days 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
    # 3 weeks, 3 days 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
    # 3 weeks, 3 days ago

    Thanks,

    That was exactly what I was looking for.

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

Reply