Redirection after Booking

Homepage Forums WP Travel Redirection after Booking

This topic contains 1 reply, has 2 voices, and was last updated by  Support Team 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3513

    santhosh
    Participant

    Hi,
    Thank you very much for the amazing plugin and theme.

    Is there a way i can redirect to a new page after the booking form successfully submitted using functions.php.

    Thanks and Regards

    #3523

    Support Team
    Keymaster

    Hello @santosh,

    First of all thank you very much for trying out the WP Travel plugin and also would like to thank you for the appreciations.

    You can definitely redirect to a new page submitting the Booking form and for this, you have to update your plugin to the recent version i.e. version 1.0.6 which has been released just now and then use the filter to change the URL.

    For this, you have to create the child theme.

    You can even create the child theme using the plugin given below:

    https://wordpress.org/plugins/wp-child-theme-generator/

    After activating the child theme in your child theme functiosn.php file paste below given code.

    function custom_thankyou_url( $url  ) {
        return 'http://yoursite.com/thankyou';
    }
    
    add_filter( 'wp_travel_thankyou_page_url', 'custom_thankyou_url' );

    Here replace the URL with your URL that you want to redirect with.

    Hope this helps.

    If you have any confusion/query regarding the plugin then please feel free to post.

    Best Regards!!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.