I have added custom menu link by following. Hope it will be helpful.
add_action( 'admin_menu' , 'custom_admin_menu_new_items' );
function custom_admin_menu_new_items() {
global $menu;
add_menu_page( 'My Page', 'My Page', 'manage_options', 'my-page', '','', 6 );
foreach($menu as $mIndex => $mData) {
if($mData[2] == 'my-page') {
$menu[$mIndex][2] = 'http://mypage.com/mypage';
break;
}
}
}
Action hook admin_menu
is used. New menu is added by add_menu_page
. And after that URL of the menu is overridden by checking the slug in the foreach loop.