|
/ Documentation /Developer Documentation/Action Hooks/ srfm_pro_before_deleting_entry

srfm_pro_before_deleting_entry

Description

Fires in SureForms Pro before an entry is deleted, passing the full entry object (not just the ID). Use it for cleanup that needs the entry’s field data. (Pro only)

Parameters

$entry (array|object) – The full entry record being deleted.

Hook Source

PHP
/**
* hook source
 */
 do_action( 'srfm_pro_before_deleting_entry', $entry );

Hook Usage

PHP
add_action( 'srfm_pro_before_deleting_entry', 'my_callback', 10, 1 ); 
function my_callback( $entry ) { 
// Cleanup using the full entry data.
 }

Hook Example

PHP
add_action( 'srfm_pro_before_deleting_entry', 'my_callback', 10, 1 ); function my_callback( $entry ) { 
// Cleanup using the full entry data. 
}
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