jetpack_contact_form_forget_ip_address
jetpack_contact_form_forget_ip_address
Appears in: jetpack.13.9.1, jetpack.14.0, jetpack.14.1, jetpack.14.2.1, jetpack.14.3, jetpack.14.4.1, jetpack.14.5, jetpack.14.6, jetpack.14.7, jetpack.14.8, jetpack.14.9.1, jetpack.15.0
Hook Type: filter
Displaying hooks found in version: jetpack.15.0apply_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 ) ); }