تفصیل
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
انسٹالیشن
There are no requirements other than WordPress and one active menu. Installation is simple:
- Upload the
wp-rest-api-menusfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
عمومی سوالات
- Installation Instructions
-
There are no requirements other than WordPress and one active menu. Installation is simple:
- Upload the
wp-rest-api-menusfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Upload the
- 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/
جائزے
There are no reviews for this plugin.
شراکت دار اور ڈیویلپرز
“WP-REST-API Menus” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ لیا:
شراکت دار“WP-REST-API Menus” کا اپنی زبان میں ترجمہ کریں۔
ڈویلپمینٹ میں دلچسپی ہے؟
کوڈ براؤز کریں، ایس این وی ریپوزیٹری کو چیک کریں یا ڈویلپمینٹ لاگ کو سبسکرائب کریں بذریعہ آر ایس ایس۔
چینج لاگ
1.0
- Requires PHP 5.6x at the very least.