public static function get_menu_name($theme_location)
    {
        $menu_obj = static::get_menu_object($theme_location);

        if ($menu_obj !== false) {
            return $menu_obj->name;
        }

        return false;
    }
public static function get_menu_name($theme_location)
    {
        $menu_obj = static::get_menu_object($theme_location);

        if ($menu_obj !== false) {
            return $menu_obj->name;
        }

        return false;
    }
public static function get_menu_name ( $ theme_location ) { $ menu_obj = static :: get_menu_object ( $ theme_location ) ; if ( $ menu_obj !== false ) { return $ menu_obj -> name ; } return false ; }
For a given menu ID, name, or slug, return the user-set name for the associated menu.

@since 1.0.0

@param  string $theme_location Menu name, ID or slug.
@return string|bool The name of the menu, or false if no menu was found.
For a given menu ID name or slug return the user - set name for the associated menu .