• Ask Question
  • Login
    Facebook WordPress GitHub
AnsPress
  • Documentation
  • Themes
  • Community
  • Blog
Download
Home / Questions / General / How can I show the user role for moderators?

How can I show the user role for moderators?

5.57K viewsNovember 18, 2017Generaluser
0
Romny Cristopher45 Posted November 17, 2017

Hi,

I would like to know how to show the moderator role in the frontend. I would like that my community know which user is a moderator.

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Rahul Aryan30.96K Posted November 17, 2017 0 Comments

Hello Romny,

You can see an example here: AnsPress_Reputation_Hooks::display_name(). You have to use this hook: apply_filters( ‘ap_user_display_name’ ).

Let me know if you need further assistance.

You are viewing 1 out of 2 answers, click here to view all answers.
  • « How to enable threaded comments
  • How users can contact moderators? »

Resources

FAQ Frequently Asked Questions.
Getting Started Learn the basics to get your WordPress project up and running.
Updates Everything you need to know about updating AnsPress.
Functions AnsPress functions
Hooks AnsPress actions and filters
Classes AnsPress classes
Methods AnsPress methods
AnsPress

Copyrights © 2014-2025 All Rights Reserved by AnsPress.

AnsPress is an open source software licensed under GNU GPL v3

  • Blog
  • Themes
  • Terms
  • Community
  • Privacy Policy
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT