2017 © Pedro Peláez
 

wordpress-plugin bridge-menus

WP REST API endpoint for menus.

image

kucrut/bridge-menus

WP REST API endpoint for menus.

  • Sunday, February 19, 2017
  • by kucrut
  • Repository
  • 1 Watchers
  • 1 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Bridge: Menus

WP REST API endpoint for menus., (*1)

This plugin was primarily built for Minnie., (*2)

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

The Versions

19/02 2017

dev-master

9999999-dev https://github.com/kucrut/wp-bridge-menus

WP REST API endpoint for menus.

  Sources   Download

GPL-2.0

The Requires

 

wordpress rest menu

19/02 2017

v0.3.0

0.3.0.0 https://github.com/kucrut/wp-bridge-menus

WP REST API endpoint for menus.

  Sources   Download

GPL-2.0

The Requires

 

wordpress rest menu

29/05 2016

v0.2.0

0.2.0.0 https://github.com/kucrut/wp-bridge-menus

WP REST API endpoint for menus.

  Sources   Download

GPL-2.0

The Requires

 

wordpress rest menu

28/05 2016

v0.1.0

0.1.0.0 https://github.com/kucrut/wp-bridge-menus

WP REST API endpoint for menus.

  Sources   Download

GPL-2.0

The Requires

 

wordpress rest menu