wpDiscuz 7 API Documentation

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

wpdiscuz_comment_link_img

This filter can be used for changing the comment link icon. It works if the comment link is enabled.

Changelog

Since 7.0.0 version

Parameters

1. $icon (type: string) – the HTML of the comment link
2. $comment (type: WP_Comment object) – the object of the current comment

Usage

add_filter("wpdiscuz_comment_link_img", function ($html, $comment) {
    return "Custom Link";
}, 10, 2);

Was this article helpful to you? Yes No