WordPress.org

Forums

WP Ajaxify Comments
Redirect after successful post (4 posts)

  1. Zuzkuk
    Member
    Posted 9 months ago #

    Hello,

    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.

    Thanks,

    Dave Timmerman

    https://wordpress.org/plugins/wp-ajaxify-comments/

  2. janjonas
    Member
    Plugin Author

    Posted 9 months ago #

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

    Thanks
    Jan

  3. Zuzkuk
    Member
    Posted 9 months 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
    Member
    Plugin Author

    Posted 9 months 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?

Reply

You must log in to post.

About this Plugin

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

About this Topic

Tags

No tags yet.