Custom controller for Wordpress JSON API allowing you to get registered menus