The contact-form-7 wpcf7 remote ip addr hook.
Published Date - July 22, 2023
return apply_filters( 'wpcf7_remote_ip_addr', $ip_addr );
$ip_addr
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)
The filter is defined in the following location(s).
contact-form-7/includes/submission.php
return apply_filters( 'wpcf7_remote_ip_addr', $ip_addr );