Your McAdmin
seems fine – the problem is likely one of two reasons:
- Another AJAX hook for
blubb
is terminating the script beforeMcAdmin::get_vehicle
- You need to add the same hook for
wp_ajax_nopriv_blubb
– for non-logged in AJAX requests (otherwise it fails silently).
If neither is the cause, you need to do a little HTTP inspecting – I use Firebug or HttpFox – and debug the server response for the AJAX request.