gform_pre_notification_deleted

The Gravity Forms gform pre notification deleted hook.

Description

do_action( 'gform_pre_notification_deleted', (unknown) $form_notifications__notification_id, (unknown) $form ); 

Parameters (2)

0. $form_notifications__notification_id (unknown)
The form notifications notification id.
1. $form (unknown)
The form.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'gform_pre_notification_deleted', $form_notifications__notification_id, $form ); 
The following example is for adding a hook callback.
  1. // define the gform_pre_notification_deleted callback 
  2. function action_gform_pre_notification_deleted( $form_notifications__notification_id, $form ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'gform_pre_notification_deleted', 'action_gform_pre_notification_deleted', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'gform_pre_notification_deleted', 'action_gform_pre_notification_deleted', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/notification.php  
  1. do_action( 'gform_pre_notification_deleted', $form['notifications'][ $notification_id ], $form );