简体   繁体   中英

how do i get all the menus of wordpress website using wordpress rest api v2?

I want to rendered all the menus of wordpress website using wp rest api v2.attach my all pages response but i didnt understand how to get menu list from this. 所有页面的回复

You need to install the WP API Menus [1] and then you can fetch the menus using wp-json/wp-api-menus/v2/menus/

[1] https://wordpress.org/plugins/wp-api-menus/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM