Hello! I am author of the post on my site. And in the same time I am administrator of this site. I turned on "Labels", and after this I see my label like "Author" in comments. But I need label "Administrator". How I can get it? If I turn off tick "Author" in plugin's settings, and if I turn on tick "Administrator", I don't see "Administrator" label in the comments anyway - in this case I don't see labels at all.
Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpDiscuz community!
Merry Christmas and Happy Holidays! 🎄
May 20, 2021 10:24 am
1 Reply
May 20, 2021 10:34 am
Use this hook code:
add_filter("wpdiscuz_author_title", function ($label, $comment) {
global $post;
if ($comment->user_id == $post->post_author) {
$label = __("Administrator", "wpdiscuz");
}
return $label;
}, 10, 2);
Put the code in the active theme functions.php file. This article should be helpful for you: https://themaverickspirit.com/add-code-snippets-functions-php-wordpress/
The red marked value can be changed if it's necessary.

