1. Docs
  2. Developer Guide
  3. Miscellaneous and Snippets
  4. Redirect to a Different URL After Property Enquiry Is Submitted

Redirect to a Different URL After Property Enquiry Is Submitted

If you’re using tracking codes (i.e Facebook Pixel) or analytics to measure property enquiries you might want to redirect the user to a new URL once an enquiry has been made. You can do this by adding the following to your themes functions.php file:

add_filter('propertyhive_make_property_enquiry_params', 'set_redirect_url');
function set_redirect_url( $params )
{
    $params['redirect_url'] = '/thank-you/'; // set this to the URL you wish to redirect them to
    return $params;
}
Was this article helpful to you? Yes No