Description
The gravityflowformconnector_delete_entry_id allows the ID of the entry to be deleted to be overridden.
Parameters
Parameter | Type | Definition |
---|---|---|
$step | 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
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 can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?