protected function populateMenu($menu_id, $menu_items)
    {
        foreach ($menu_items as $menu_item) {
            if (isset($menu_item['title']) && isset($menu_item['type'])) {
                wp_update_nav_menu_item($menu_id, 0, $this->getMenuItemData($menu_item['type'], $menu_item));
            }
        }
    }