I am facing a problem on ajax callback.
I have an inquiry form which is added from plugin. The form works via ajax where a callback function handles the task of sending mail to admin regarding the inquiry.
I am able to alter the form fields via filter. But couldn't overwrite the callback function.
Is there a way by which I can overwrite that ajax handling callback function (coded in plugin) from theme?
Below is how that callback function is hooked:
add_action('wp_ajax_wte_enquiry_send_mail', array($this, 'wte_enquiry_send_mail') );
add_action('wp_ajax_nopriv_wte_enquiry_send_mail', array($this, 'wte_enquiry_send_mail') );
Any help will be highly appreciated.
Thank you!