WP Ajaxify Comments
Redirect after successful post (4 posts)

  1. Zuzkuk
    Posted 1 year ago #


    How would I go about redirecten the user to a separate page after successfully submitting a comment?

    I tried using the 'OnAfterUpdateComments' callback, but that doesn't seem to be the right callback.


    Dave Timmerman


  2. janjonas
    Plugin Author

    Posted 1 year ago #

    Could you please send me the JavaScript code you used for the 'OnAfterUpdateComments' callback.


  3. Zuzkuk
    Posted 1 year ago #

    I simply alert the callback to see what works.

    When I load the form page, the 'OnBeforeSelectElements' callback is triggered.

    On submit the 'OnBeforeSubmitComment' callback is triggered.

    The 'OnBeforeUpdateComments' callback and the 'OnAfterUpdateComments' callback don't seem to be triggered at all.

    I can't use any of those for my purpose, which is:
    Save a new post and redirect after it's succesfully saved to the db.
    I want to use your plugin's nice error handling, but still redirect after posting...

    Dave Timmerman

  4. janjonas
    Plugin Author

    Posted 1 year ago #

    IMHO, the 'OnBeforeUpdateComments' callback could be used to redirect the user to another page. I assume, that there is another (JavaScript) problem, that causes the callbacks not to be called.

    Could you please send me a link to a page where I can reproduce the problem?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Ajaxify Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.