Title: WP-REST-API Menus
Author: jcdev518
Published: <strong>19 Tháng 3, 2018</strong>
Last modified: 26 Tháng 3, 2018

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://ps.w.org/wp-rest-api-menus/assets/icon-128x128.jpg?rev=1842417)

# WP-REST-API Menus

 Bởi [jcdev518](https://profiles.wordpress.org/jcdev518/)

[Tải về](https://downloads.wordpress.org/plugin/wp-rest-api-menus.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/wp-rest-api-menus/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/wp-rest-api-menus/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/wp-rest-api-menus/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/wp-rest-api-menus/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/wp-rest-api-menus/)

## Mô tả

This plugin adds “routes” or “endpoints” to WP REST API that allows for retrieval
of
 menu data as JSON.

Updated port of “WP-REST-API V2 Menus” by Claudio La Barbera (http://www.claudiolabarbera.
com)

**Usage**

**Get all registered menus:**

    ```
    GET /wp-menus/v1/menus
    https://yourwpsite.com/wp-json/wp-menus/v1/menus
    ```

**Get menu data as JSON from menu slug:**

    ```
    GET /wp-menus/v1/menus/{slug}
    https://yourwpsite.com/wp-json/wp-menus/v1/menus/{slug}
    ```

Gets the contents of a registered menu by its “slug”.

When assigning a menu a location in /wp-admin/nav-menus.php?action=locations
 the
slug is the name of the menu in lowercase and without any spaces like a post slug.

If your menu name is Main Menu:
 https://yourwpsite.com/wp-json/menus/v1/wp-menus/
main-menu

## Cài đặt

There are no requirements other than WordPress and one active menu. Installation
is simple:

 1. Upload the `wp-rest-api-menus` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Hỏi đáp

  Installation Instructions

There are no requirements other than WordPress and one active menu. Installation
is simple:

 1. Upload the `wp-rest-api-menus` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

  How do I use this plugin?

It creates a JSON interpretation of any “registered” menu mainly for front-end use.
If you have any questions feel free to contact me: https://www.amorphouswebsolutions.
com/contact/

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“WP-REST-API Menus” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ jcdev518 ](https://profiles.wordpress.org/jcdev518/)

[Dịch “WP-REST-API Menus” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/wp-rest-api-menus)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/wp-rest-api-menus/), check
out [SVN repository](https://plugins.svn.wordpress.org/wp-rest-api-menus/), hoặc
theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/wp-rest-api-menus/)
qua [RSS](https://plugins.trac.wordpress.org/log/wp-rest-api-menus/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0

 * Requires PHP 5.6x at the very least.

## Meta

 *  Phiên bản **1.0**
 *  Cập nhật lần cuối **8 năm trước**
 *  Số lượt cài đặt **80+**
 *  Phiên bản WordPress ** 4.7.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.9.29**
 *  Phiên bản PHP ** 5.6 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/wp-rest-api-menus/)
 * Thẻ
 * [JSON](https://vi.wordpress.org/plugins/tags/json/)[json rest api](https://vi.wordpress.org/plugins/tags/json-rest-api/)
   [menus](https://vi.wordpress.org/plugins/tags/menus/)[wp-api](https://vi.wordpress.org/plugins/tags/wp-api/)
   [wp-rest-api](https://vi.wordpress.org/plugins/tags/wp-rest-api/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/wp-rest-api-menus/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

[Your review](https://wordpress.org/support/plugin/wp-rest-api-menus/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/wp-rest-api-menus/reviews/)

## Những người đóng góp

 *   [ jcdev518 ](https://profiles.wordpress.org/jcdev518/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/wp-rest-api-menus/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://amorphouswebsolutions.com/plugins)