1. Home
  2. Actions
  3. Action reference: wpforms_process_entry_save

do_action( 'wpforms_process_entry_save', $fields, $entry, $form_id, $form_data );

Action that fires when entry is saved to the database.


The wpforms_process_entry_save action fires after the entry has been successfully processed, when the entry is being saved to the database. Both the confirmation event and notification email are triggered after this hook has run.


(array) Sanitized entry field values/properties.
(array) Original $_POST global.
(int) Form ID.
(array) Form settings/data.



More Information

Below is the context in which the wpforms_process_entry_save hook is run.

 * Saves entry to database.
 * @since 1.0.0
 * @param array $fields
 * @param array $entry
 * @param int $form_id
 * @param array $form_data
 * @return int
public function entry_save( $fields, $entry, $form_id, $form_data = '' ) {

	do_action( 'wpforms_process_entry_save', $fields, $entry, $form_id, $form_data );

	return $this->entry_id;

This hook is also used in wpforms/pro/wpforms-pro.php, which loads features and functionality specific to the paid plugin version.

Updated on November 9, 2018

Was this article helpful?