ninja_forms-get_ip

The Ninja Forms ninja forms get ip hook.

Description

apply_filters( 'ninja_forms-get_ip', (unknown) $apply_filters ); 

Parameters (1)

0. $apply_filters (unknown) => apply_filters( 'nf_get_ip', $ip )
The apply filters.

Usage

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

Defined (2)

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 ) );