pierrebalian of Rocket55 Web Team
5/12/2017 - 8:00 PM

Filter to remove Contact Form 7 Query Strings from URL on submit or redirect. Goes in functions file.

Filter to remove Contact Form 7 Query Strings from URL on submit or redirect. Goes in functions file.

add_filter('wpcf7_form_action_url', 'remove_unit_tag');

function remove_unit_tag($url){
    $remove_unit_tag = explode('#',$url);
    $new_url = $remove_unit_tag[0];
    return $new_url;
}