jetpack_contact_form_forget_ip_address

jetpack_contact_form_forget_ip_address

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.15.0

apply_filters('jetpack_contact_form_forget_ip_address') is found 2 times:

  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form.php line 1858
    		 * @param string $ip_address IP address of the form submission.
    		 *
    		 * @since 0.33.0
    		 */
    		if ( apply_filters( 'jetpack_contact_form_forget_ip_address', false, $comment_author_ip ) ) {
    			$comment_author_ip = null;
    		}
    
    		$comment_ip_text = $comment_author_ip ? "IP: {$comment_author_ip}\n" : null;
    
    		$post_id = wp_insert_post(
    
  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-feedback.php line 801
    			$fields_to_serialize['fields'][] = $field->serialize();
    		}
    
    		// Check if the IP should be included.
    		if ( apply_filters( 'jetpack_contact_form_forget_ip_address', false, $this->ip_address ) ) {
    			$fields_to_serialize['ip'] = null;
    		}
    
    		return addslashes( wp_json_encode( $fields_to_serialize ) );
    	}