gfpdfe_lead_id

Backwards compat.

Description

apply_filters( 'gfpdfe_lead_id', (unknown) $entry_id, (unknown) $form, (unknown) $entry, (unknown) $gfpdf ); 

Parameters (4)

0. $entry_id (unknown)
The entry id.
1. $form (unknown)
The form.
2. $entry (unknown)
The entry.
3. $gfpdf (unknown)
The gfpdf.

Usage

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

Defined (1)

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

/src/helper/Helper_Templates.php  
  1. 'lead_id' => apply_filters( 'gfpdfe_lead_id', $entry['id'], $form, $entry, $gfpdf ), /** backwards compat */