wpDiscuz
wpDiscuz replaces the default WordPress comment form with a real-time AJAX discussion system with voting, inline comments, and social login. Advanced Form Integration captures posted comments and routes the data to any of 200+ destinations.
What you’ll need
- The wpDiscuz plugin installed and activated.
- Comments enabled on at least one post type.
- The Advanced Form Integration plugin installed and activated.
When the trigger fires
AFI registers a single Comment Posted trigger for wpDiscuz. It fires when a comment is submitted through the wpDiscuz AJAX form and clears the trash and spam checks.
Data captured
| Field | Field key | Format |
|---|---|---|
| Comment ID | comment_id |
Numeric ID |
| Post ID | post_id |
Numeric ID |
| Post Title | post_title |
Text |
| Author Name | author_name |
Text |
| Author Email | author_email |
Email address |
| Comment Content | comment_content |
Text, line breaks preserved |
| User ID | user_id |
Numeric ID, 0 for guests |
Create the integration
- Go to WP Admin → AFI → Add New.
- Enter an Integration Title, e.g.
wpDiscuz: Comment Posted → Slack. - In Trigger → Form/Data Provider, select wpDiscuz.
- In Form/Task Name, choose Comment Posted.
- In Action → Platform, pick the destination and complete the field mapping.
- Optional: configure Conditional Logic so only matching events are sent.
- Click Save Integration.

How AFI listens for comments
AFI hooks wpdiscuz_after_comment_post from class.WpdiscuzCore.php. Both the trash and spam branches call wp_send_json_error() and return earlier in the same method, so by the time the hook runs the comment is genuinely posted, whether approved or held for moderation. It passes a real WP_Comment object plus the current WP_User. Registration is guarded by class_exists( 'WpdiscuzCore' ).
Guest commenters
User ID is 0 for guests, which is the common case on a public blog. Author name and email still arrive because wpDiscuz collects them on the form.
Comments held for moderation still dispatch
The hook does not distinguish approved from pending. If you only want approved comments reaching your destination, that distinction has to be made downstream, or route everything into a moderation queue and act on it there.
Troubleshooting
Comments posted through the default form do not fire
This hook belongs to wpDiscuz’s own AJAX handler. If a theme or a caching layer falls back to the classic WordPress comment form, that path is not covered.
Spam comments do not fire
Correct, and intentional. wpDiscuz rejects them before the hook runs.