wpscholar/wp-rest-menu-endpoints

WordPress REST API endpoints for menus

1.0.1 2019-01-24 21:52 UTC

This package is auto-updated.

Last update: 2024-10-26 08:18:34 UTC


README

This repository is meant to serve as an initial implementation of the WordPress REST API menu endpoints with the intent of eventually merging into WordPress core.

Discussion via issues and pull requests are welcome.

View the API documentation

What It Does

Provides a collection of endpoints that allow full management of menus in WordPress.

Don't believe me? Try out my Vue prototype that aims to replicate the menus page from the WordPress admin.

How to Use It

Add to your project via Composer:

$ composer wpscholar/wp-rest-menu-endpoints

Make sure you have added the Composer autoloader to your project:

<?php

require __DIR__ . '/vendor/autoload.php';

All endpoints will be automatically registered and will work out of the box. Check out the API documentation to see how the API works. If you have a question, just open an issue.