Prevent contact form user’s IP from being sent in email
-
I’m trying to prevent Jetpack’s contact form from including a user’s IP address being sent in the contact from response email to a website administrator.
So far I’ve tried this:
But it’s not worked. Please can you advise? Thanks.
//remove user IP address from contact form emails function filter_feedback_ip_field_value( $value, $field_id ) { if ( $field_id === '_feedback_ip' ) { // Return an empty value to remove the IP address from the email $value = ''; } return $value; } add_filter( 'jetpack_grunion_contact_form_field_value', 'filter_feedback_ip_field_value', 10, 2 );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Prevent contact form user’s IP from being sent in email’ is closed to new replies.