Grouping of CPTs and taxonomies into menu groups in admin

We could manipulate the global $menu and $submenu inside the admin_menu hook. But it’s easier to let Mike Schinkel’s WP Admin Menu Classes take care of it.

require_once('inc/wp-admin-menu-classes.php');

add_action( 'admin_menu', function()
{
    $plugin_page="wpse_114343"; 
    add_menu_page(
        'Console',
        'Console',
        'edit_pages',
        $plugin_page,
        function() {},
        "http://cdn.sstatic.net/stackexchange/img/favicon.ico",
        6
    );
    // Move the CPT Movie and remove original
    $cpt = "edit.php?post_type=movie";
    copy_admin_menu_item( $plugin_page,$cpt );
    remove_admin_menu_section( $cpt );

    // Move the CPT Page and remove original
    $cpt2 = "edit.php?post_type=page";
    copy_admin_menu_item( $plugin_page, $cpt2 );
    remove_admin_menu_section( $cpt2 );

    // Move Posts Category and Tags and remove originals
    $cat = "edit-tags.php?taxonomy=category";
    $tag = "edit-tags.php?taxonomy=post_tag";
    $tax_menu = 'edit.php';
    copy_admin_menu_item( $plugin_page, $tax_menu, $cat );
    copy_admin_menu_item( $plugin_page, $tax_menu, $tag );
    remove_admin_menu_item( $tax_menu, $cat );
    remove_admin_menu_item( $tax_menu, $tag );
});

manipulated wp-admin menu and sub-menu

tech