nf_subs_csv_extra_values

The Ninja Forms nf subs csv extra values hook.

Description

apply_filters( 'nf_subs_csv_extra_values', (unknown) $csv_array, (unknown) $subs, (unknown) $form_id ); 

Parameters (3)

0. $csv_array (unknown)
The csv array.
1. $subs (unknown)
The subs.
2. $form_id (unknown)
The form id.

Usage

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

Defined (1)

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

/includes/Database/Models/Submission.php  
  1. $csv_array = apply_filters( 'nf_subs_csv_extra_values', $csv_array, $subs, $form_id );