Hello, you need to display the menu in the application for WordPress, is connected by the REST API, looked through the developer.wordpress.org/rest-api/ documentation but did not find the answer, there is another 1 plugin, wordpress.org/plugins/wp-api-menus/ I would like to use 1 for everything, is there an option to exclusively make everything 1m off with the wordpress.org/plugins/rest-api/ plugin?

    1 answer 1

    Menus are not included in the standard endpoints list for the Rest API. The wordpress.org/plugins/rest-api/ plugin also does not contain such functionality. On the other hand, I do not understand the need for this plugin at all. Rest API in WordPress works without it. Follow, for example, the following link:

    http://test.kagg.eu/wp-json/wp/v2/posts/

    see all posts on my test site.

    The wordpress.org/plugins/wp-api-menus/ plugin can be used without wordpress.org/plugins/rest-api/, which I did for testing. Now only wordpress.org/plugins/wp-api-menus/ is installed on the test site. Follow this link

    http://test.kagg.eu/wp-json/wp-api-menus/v2/menus/

    and you will see a list of menus.

    So the answer is: yes, you can use one plugin, and it is called wordpress.org/plugins/wp-api-menus/