• Resolved Amit Sonkhiya

    (@amitaits)


    Hi,

    Thank you for this awesome plugin. I’m curious to know if the plugin supports subscriptions when the comment submission is done via AJAX request?

    If there is any action/hook recommended to call, do let me know.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @amitaits

    Depends on the way the AJAX submission is implemented, since AJAX submission for comments is not a core WordPress functionality I can’t say for sure.

    Are you using a plugin for that or some specific code available on Github or somewhere else where I can check it out.

    Thread Starter Amit Sonkhiya

    (@amitaits)

    Hi @wpkube

    My server-side implementation is primarily based on this tutorial.

    I can confirm that the POST data contains subscribe-reloaded: replies as well.

    Additionally, I would like to know does the plugin notify after comment approval in case the moderation is enabled rather than when it is posted?

    Thank you

    Plugin Author WPKube

    (@wpkube)

    Hi @amitaits

    I implemented that code and tested it out, the subscription did get added.

    The important part is that the POST data contains it and that in the code you have wp_handle_comment_submission function, the action “comment_post” is then called and that’s what the plugin hooks into when it handles the subscription.

    As for notifications, they are sent out when the comment is approved.

    Thread Starter Amit Sonkhiya

    (@amitaits)

    Hi @wpkube

    I’ve tested the same in a local installation and the subscriber is added in the database. I will set it up to the live site sooner.

    Thanks for the time and testing

    Plugin Author WPKube

    (@wpkube)

    You’re welcome @amitaits

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Support for AJAX Enabled Comments’ is closed to new replies.