I’m using the Forminator Plugin for WordPress, and right now I’m trying to remove the action that (I asume) calls the default AJAX function that handles the POST, I have found this two actions:
add_action( 'wp_ajax_forminator_submit_form_' . static::$entry_type, array( $this, 'save_entry' ) );
add_action( 'wp_ajax_nopriv_forminator_submit_form_' . static::$entry_type, array( $this, 'save_entry' ) );
Supposedly removing this should be ok to implement my own script, but even if a remove this actions on my functions.php like this:
remove_action('wp_ajax_forminator_submit_form_custom-forms', array('Forminator_Front_Action','save_entry'), 12);
I need to replace this action so I can work with the POST data right after submit, but I dont’ know where to add mine aswell, and why it isn’t removing the other action, I’ll appreciate any help!
sinned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.