wpDiscuz 7 API Documentation

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


This filter can be used to change the attributes of the link printed on the comment author name. The hook works if the profile URL is enabled and the user has the profile URL or the comment author URL.


Since 7.0.0 version


$attrs (type: array) – the attributes of the link of the comment author name


add_filter("wpdiscuz_author_link_attributes", function ($attrs) {
    $attrs["target"] = "";
    return $attrs;

Was this article helpful to you? Yes 1 No 1