kucrut/bridge-menus 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kucrut/bridge-menus

Composer 安装命令:

composer require kucrut/bridge-menus

包简介

WP REST API endpoint for menus.

README 文档

README

WP REST API endpoint for menus.

This plugin was primarily built for Minnie.

Requirements

  • WordPress 4.7.2+

Endpoints

  • By Menu ID: GET /wp-json/bridge/v1/menus/<id>
  • By Menu Location: GET /wp-json/bridge/v1/menus/<location>
{
  "id": 2,
  "name": "Primary",
  "slug": "primary",
  "description": "",
  "items": [
    {
      "id": 4,
      "order": 1,
      "parent": 0,
      "title": "Home",
      "url": "/",
      "attr": "",
      "target": "",
      "classes": [],
      "xfn": "",
      "description": "",
      "object_id": 4,
      "object": "custom",
      "type": "custom",
      "type_label": "Custom Link",
      "children": [
        {
          "id": 29,
          "order": 2,
          "parent": 4,
          "title": "WordPress",
          "url": "http://w.org",
          "attr": "",
          "target": "",
          "classes": [],
          "xfn": "",
          "description": "",
          "object_id": 29,
          "object": "custom",
          "type": "custom",
          "type_label": "Custom Link",
          "children": []
        }
      ]
    },
    {
      "id": 5,
      "order": 3,
      "parent": 0,
      "title": "Sample Page",
      "url": "/sample-page/",
      "attr": "",
      "target": "",
      "classes": [],
      "xfn": "",
      "description": "",
      "object_id": 2,
      "object": "page",
      "type": "post_type",
      "type_label": "Page",
      "children": []
    },
    {
      "id": 6,
      "order": 4,
      "parent": 0,
      "title": "Uncategorized",
      "url": "/blog/category/uncategorized/",
      "attr": "",
      "target": "",
      "classes": [],
      "xfn": "",
      "description": "",
      "object_id": 1,
      "object": "category",
      "type": "taxonomy",
      "type_label": "Category",
      "children": []
    }
  ]
}

Changelog

0.3.1

  • Fix Walker

0.3.0

  • Remove WP-API from dependencies.

0.2.0

  • Don't strip home_url() from item->url, let Bridge handle it.

0.1.0

  • Initial

统计信息

  • 总下载量: 300
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2016-05-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固