wpDiscuz 7 API Documentation

⌘K
  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentat...
  4. Filters
  5. wpdiscuz_after_comment_author

wpdiscuz_after_comment_author

This filter can be used to print some HTML after the comment author name.

Changelog

Aadded starting from 7.0.0 version

Parameters

1. $html (type: string) - the HTML that should be displayed after the comment author name 2. $comment (type: WP_Comment object) - the object of the current comment 3. $user (type: WP_User object) - the user object that is logged in at the current time

Usage

add_filter("wpdiscuz_after_comment_author", function ($html, $comment, $user) {
    $html .= "Custom Message";
    return $html;
}, 10, 3);