This hook can be used to override or change the the client IP address before it’s displayed or saved.
quform_get_client_ip
Example
1 2 3 | add_filter('quform_get_client_ip', function ($ip) { return $_SERVER['REMOTE_ADDR']; }); |
add_filter('quform_get_client_ip', function ($ip) { return $_SERVER['REMOTE_ADDR']; });
1 2 3 4 5 | function my_get_client_ip($ip) { return $_SERVER['REMOTE_ADDR']; } add_filter('quform_get_client_ip', 'my_get_client_ip'); |
function my_get_client_ip($ip) { return $_SERVER['REMOTE_ADDR']; } add_filter('quform_get_client_ip', 'my_get_client_ip');
Parameters
$ip
–string
– the current IP address