Support » Plugin: JSON API » Menus Categories

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you’re looking to get a menu listing that you’ve created in WP Admin, then you’re in luck. Check out this custom controller I put together to get a simple menu listing via the API: https://github.com/mcnasby/wp-json-api-menu-controller

    Hi Mike, your controller is exactly what I am looking for – I use the JSON API and want to pull back the menu info. I’ve downloaded your code from GitHub but it’s giving me an error on the JSON page:

    Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/instant/public_html/wp-content/themes/Lotus/api-controllers/menus.php on line 17

    Any ideas?

    Thanks
    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Menus Categories’ is closed to new replies.