nf_get_ip

The Ninja Forms nf get ip hook.

Description

apply_filters( 'nf_get_ip', (unknown) $ip ); 

Parameters (1)

0. $ip (unknown)
The ip.

Usage

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

Defined (3)

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

/includes/MergeTags/Other.php  
  1. return apply_filters( 'ninja_forms-get_ip', apply_filters( 'nf_get_ip', $ip ) ); 
/includes/MergeTags/Deprecated.php  
  1. return apply_filters( 'ninja_forms-get_ip', apply_filters( 'nf_get_ip', $ip ) ); 
/deprecated/includes/functions.php  
  1. return apply_filters( 'nf_get_ip', $ip );