library/Helper/Navigation.php
public static function getMenuNameByLocation($location)
    {
        if(!has_nav_menu($location)) return false;
        $menus = get_nav_menu_locations();
        $menuTitle = wp_get_nav_menu_object($menus[$location])->name;
        return $menuTitle;
    }
public static function getMenuNameByLocation($location)
    {
        if(!has_nav_menu($location)) return false;
        $menus = get_nav_menu_locations();
        $menuTitle = wp_get_nav_menu_object($menus[$location])->name;
        return $menuTitle;
    }
public static function getMenuNameByLocation ( $ location ) { if ( ! has_nav_menu ( $ location ) ) return false ; $ menus = get_nav_menu_locations ( ) ; $ menuTitle = wp_get_nav_menu_object ( $ menus [ $ location ] ) -> name ; return $ menuTitle ; }
Get menu name by menu location
@param mixed $location slug or ID of registered menu
@return  string menu name
Get menu name by menu location