Commit 5d71d382 authored by Eric Windham's avatar Eric Windham Committed by Kenny Hall

adds an action to access and act on $data before responding (#3469)

parent bc36afbe
......@@ -59,6 +59,9 @@ abstract class NF_Abstracts_Controller
$this->_errors = array_merge( $this->_errors, $this->_data[ 'errors' ] );
// allow for accessing and acting on $data before responding
do_action( 'ninja_forms_before_response', $data );
$response = array( 'data' => $data, 'errors' => $this->_errors, 'debug' => $this->_debug );
echo wp_json_encode( $response );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment