• Resolved scriptink

    (@scriptink)


    Hi Thanks for this Plugin It really helpful for my basic need. I not Hardcode Developer and my learning and understanding i create website. now in this website

    I would like to redirect user after submit rating. as I see there’s action hook “mrp_after_save_rating_entry_success” but might be it only for pro version i don’t know
    Form that I guessing this code

    // Redirect to thank after rating
    add_action( 'mr_after_save_rating_entry_success' , 'your_redirect_function' );
    function your_redirect_function () {
        // Here all you need to do is return the url of your target page.
        $page = '/catagory-+/';
        return $page;
    }

    Please Correct me if i doing any mistake or guide me if any other way to redirect user after submit rating.

    Thanks in Advance

Viewing 1 replies (of 1 total)
  • Plugin Author dpowney

    (@dpowney)

    Hi there,

    Yes that hook is only available in the Pro version.

    The save rating form action is done via AJAX (asynchronously in the background), so redirection to a different page needs to be done client side using JavaScript. Take a look at the handle_rating_form_submit_response() function in the frontend.js file. window.location is the simplest way to change the URL and redirect to another page in javaScript.

    I hope this helps,
    Daniel

Viewing 1 replies (of 1 total)
  • The topic ‘redirect after Successfull submit rating?’ is closed to new replies.