WordPress – Detect successful response from ajax function
I have a function which is triggered via AJAX and will run the following when successful: wp_send_json_success(); I am then doing a console log of the response and trying to detect if success = true: .done(function (response) { if( response['success']…