Skip to content

Commit

Permalink
Merge pull request #2847 from CalderaWP/feature/2846
Browse files Browse the repository at this point in the history
Add caldera_forms_api_entry_data  for entry being returned via REST API
  • Loading branch information
New0 authored Dec 17, 2018
2 parents ba75451 + cd43266 commit d719a24
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions classes/api/entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ protected function add_entry_to_response( Caldera_Forms_Entry $entry, array $re

}


/**
* Modify response data for entry returned via REST API
*
* @since 1.8.0
*
* @param array $data Data to be returned for entry
* @param Caldera_Forms_Entry $entry Entry data
*/
$response_data[ $id ] = apply_filters( 'caldera_forms_api_entry_data', $response_data[ $id ], $entry );
return $response_data;
}

Expand Down

0 comments on commit d719a24

Please # to comment.