gform_before_resend_notifications_<form_id>

The Gravity Forms gform before resend notifications form id hook.

Description

apply_filters( 'gform_before_resend_notifications_<form_id>', $rgformsmodel, $leads ); 

Parameters (2)

0. $rgformsmodel
The rgformsmodel.
1. $leads
The leads.

Usage

To run the hook, copy the example below.
  1. $rgformsmodel = apply_filters( 'gform_before_resend_notifications_{$form_id}', $rgformsmodel, $leads ); 
  2.  
  3. if ( !empty( $rgformsmodel ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gform_before_resend_notifications_<form_id> callback 
  2. function filter_gform_before_resend_notifications_form_id( $rgformsmodel, $leads ) { 
  3. // make filter magic happen here... 
  4. return $rgformsmodel
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "gform_before_resend_notifications_{$form_id}", 'filter_gform_before_resend_notifications_form_id', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "gform_before_resend_notifications_{$form_id}", 'filter_gform_before_resend_notifications_form_id', 10, 2 ); 

Defined (1)

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

/gravityforms.php  
  1. $form = gf_apply_filters( array( 'gform_before_resend_notifications', $form_id ), RGFormsModel::get_form_meta( $form_id ), $leads );