$id, 'menu_item_parent' => (string) $parent, 'title' => $title, 'post_title' => $type === 'custom' ? $title : '', 'type' => $type, 'object' => $type === 'custom' ? 'custom' : 'page', 'object_id' => (string) ($type === 'custom' ? $id : $id + 100), 'url' => $url, 'description' => '', 'attr_title' => '', 'target' => '', 'classes' => [''], 'xfn' => '', ]; } }