wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Actions
  5. wpdiscuz_after_comments
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

wpdiscuz_after_comments

This action can be used to display custom HTML after the div with the #wpd-threads ID.

Changelog

since 7.0.0 version

Parameters

1. $post (type: WP_Post object) – the current post object
2. $currentUser (type: WP_User object) – the user object that is currently logged in
3. $commentsCount (type: int) – number of comments at the current time

Usage

add_action("wpdiscuz_after_comments", function ($post, $currentUser, $commentsCount) {
    echo "Custom Message";
}, 10, 3);

Was this article helpful to you? Yes No