gravityflowformconnector_delete_entry_id

Description

The gravityflowformconnector_delete_entry_id allows the ID of the entry to be deleted to be overridden.

Parameters

ParameterTypeDefinition
$stepStepThe step currently being processed.
$formForm objectCurrent form.
$entryEntry objectThe current entry.
$target_entry_idIntegerThe target entry.

Examples

1
2
3
4
5
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?