|

srfm_before_delete_entry

Description

Fires immediately before a SureForms entry is deleted from the entries table. Use it to clean up related data (uploaded files, external records) before the entry is removed.

Parameters

$entry_id (int) – The ID of the entry about to be deleted.

Hook Source

PHP
/**
* hook source
 */
do_action( 'srfm_before_delete_entry', $entry_id );

Hook Usage

PHP
add_action( 'srfm_before_delete_entry', 'my_callback', 10, 1 ); 
function my_callback( $entry_id ) { 
// Clean up data related to this entry.
}

Hook Example

PHP
add_action( 'srfm_before_delete_entry', 'my_callback', 10, 1 ); function my_callback( $entry_id ) { 
// Clean up data related to this entry. 
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top