add_action( 'admin_menu', 'add_custom_submenus', 9999 );
function add_custom_submenus()
{
global $submenu;
if( isset($_GET['post']) && get_post($_GET['post']) && isset($_GET['action']) && 'edit' == $_GET['action'] )
$post = get_post($_GET['post']);
if( isset($post)
&& !empty($post->post_type)
&& is_object_in_taxonomy($post->post_type, 'category')
){
foreach ( (array) get_the_category($post->ID) as $cat )
{
if ( empty($cat->slug ) )
continue;
$submenu['edit.php'][] = array(
__('Back'), // menu title
'edit_posts', // menu cap
'edit.php?category_name=" . $cat->slug // menu link
);
}
}
}