1. Home
  2. Docs
  3. Property Hive – Cor...
  4. Enquiries
  5. 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? No Yes

How can we help?