wpcf7_remote_ip_addr

The contact-form-7 wpcf7 remote ip addr hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_remote_ip_addr', $ip_addr );

Parameters

  1. $ip_addr


Usage

The following example is for adding a hook callback.

// define the wpcf7_remote_ip_addr callback 
function custom_wpcf7_remote_ip_addr( $ip_addr ){ 
   //custom code here
    return $ip_addr
} 

//add the action 
add_filter('wpcf7_remote_ip_addr', 'custom_wpcf7_remote_ip_addr', 10, 1)

Defined

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

contact-form-7/includes/submission.php

return apply_filters( 'wpcf7_remote_ip_addr', $ip_addr );