AJAX in WordPress. Class based example.