Description
Easy to use plugin for displaying prettier json data for menus, widgets and sidebars.
I’ve got an idea/fix for the template
If you would like to contribute to this template then please fork it and send a pull request. I’ll merge the request if it fits into the goals for the template
Installation
- Upload
ng-wp-rest
to the/wp-content/plugins/
directory. - That is it this plugin just defines some simple rest endpoints for you blog.
FAQ
- Installation Instructions
-
- Upload
ng-wp-rest
to the/wp-content/plugins/
directory. - That is it this plugin just defines some simple rest endpoints for you blog.
- Upload
- How does it work?
-
Simply install it and visit the endpoints defined
Menus
- https://{url}/wp-json/ng-menu-route/v2/menus/{id}
- https://{url}/wp-json/ng-menu-route/v2/menus
- https://{url}/wp-json/ng-menu-route/v2/menu-locations/header-menu
- https://{url}/wp-json/ng-menu-route/v2/menu-locations
Widgets
- https://{url}/wp-json/ng-widget-route/v2/widgets/{id}
- https://{url}/wp-json/ng-widget-route/v2/widgets
Sidebars
- https://{url}/wp-json/ng-sidbar-route/v2/sidebars/{id}
- https://{url}/wp-json/ng-sidebar-route/v2/sidebars
Custom Post Types
- https://{url}/wp-json/ng-post-type-route/v2/post-types/{name}
- https://{url}/wp-json/ng-post-type-route/v2/post-types/
Meta Fields for sidebars shows on Post and Page default endpoints
"meta-fields":
{
"sidebar":["Right Sidebar"]
}
Contributors & Developers
“ng-wp-rest” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “ng-wp-rest” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0
- 02-21-2018
- Initial release
1.2.1
- 02-24-2018
- Updates to endpoints and small bug fix
1.2.2
- 02-24-2018
- Custom post types bug fix
1.5.0
- 03-26-2018
- Custom post types fix
- Separated Code into more classes