wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_avatar_link_attributes
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

wpdiscuz_avatar_link_attributes

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

Changelog

Since 7.0.0 version

Parameters

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

Usage

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

Was this article helpful to you? Yes No