gravityflowformconnector_delete_entry_id
The gravityflowformconnector_delete_entry_id allows the ID of the entry to be deleted to be overridden.
Parameters
Parameter | Type | Definition |
---|---|---|
$step | Gravity flow step | The step currently being processed. |
$form | Form object | Current form. |
$entry | Entry object | The current entry. |
$target_entry_id | Integer | The target entry. |
Examples
Example 1 -
Placeholder code.
add_filter( 'gravityflowformconnector_delete_entry_id', 'sh_gravityflowformconnector_delete_entry_id',10,4 ); function sh_gravityflowformconnector_delete_entry_id ($target_entry_id, $entry, $form, $step) { // Do some stuff here return $target_entry_id; }
Placement
This code should be placed in the functions.php file of your active theme or in a custom functions plugin.