• How can we remove mandrill from the Dashboard Submenu?

    I was able to remove it with the below code but that removes all submenu items after the dashboard > updates submenu item…

    function edit_admin_menus() {
    global $submenu;
    unset($submenu['index.php'][11]);
    return $submenu;
    }
    add_action( 'admin_menu', 'edit_admin_menus' );

    I thought this would work but it did not:

    function remove_wpmandrill_submenu() {
        remove_submenu_page( 'index.php', 'index.php?page=wpmandrill-reports' );
    }
    add_action( 'admin_init', 'remove_wpmandrill_submenu' );

    Sidenote: Jetpack Site Stats will not show dashboard widget reports until Mandrill is removed from the Dashboard Submenu, a little bug I noticed.

    Any word on having the option to remove these by a checkbox in the plugin ??

    https://www.ads-software.com/plugins/wpmandrill/

  • The topic ‘Remove ManDrill from Dashboard Submenu’ is closed to new replies.