Viewing 1 replies (of 1 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    Following the example for Changing Data Before it is Saved, you could put something like this:

    function add_agent_to_form_submission($formData) {
        $formData->posted_data['agent'] = $_SERVER['HTTP_USER_AGENT']
        return $formData; // be sure to return it
    }
    
    add_filter('cfdb_form_data', 'add_agent_to_form_submission');

Viewing 1 replies (of 1 total)
  • The topic ‘Jetpack Contact Form – How can I save sender's ip on the database?’ is closed to new replies.