Testing calling the wordpress api from jquery