Title: DP Username &amp; Role Display
Author: Dixit Pujara
Published: <strong>August 27, 2026</strong>
Last modified: August 27, 2026

---

Search plugins

![](https://ps.w.org/dp-username-role-display/assets/banner-772x250.png?rev=3668845)

![](https://ps.w.org/dp-username-role-display/assets/icon-256x256.png?rev=3668845)

# DP Username & Role Display

 By [Dixit Pujara](https://profiles.wordpress.org/dixitpujara/)

[Download](https://downloads.wordpress.org/plugin/dp-username-role-display.1.0.zip)

 * [Details](https://wordpress.org/plugins/dp-username-role-display/#description)
 * [Reviews](https://wordpress.org/plugins/dp-username-role-display/#reviews)
 *  [Installation](https://wordpress.org/plugins/dp-username-role-display/#installation)
 * [Development](https://wordpress.org/plugins/dp-username-role-display/#developers)

 [Support](https://wordpress.org/support/plugin/dp-username-role-display/)

## Description

DP Username & Role Display shows the display name and role(s) of the currently logged-
in user near the top of every page on the front end of your site.

It is useful for membership sites, intranets, staging environments, and any site
where it helps to know, at a glance, who is logged in and what role they hold.

**Features**

 * Shows the logged-in user’s display name and role(s) on the front end.
 * Enable or disable the display from a settings page.
 * Choose the background, text, and label colors with the built-in WordPress color
   picker.
 * Edit the label text (“User:” and “Role:”) to whatever wording you prefer.
 * Pick from 5 ready-made display templates that change the front-end layout (classic
   bar, full-width banner, rounded pill, minimal inline, and accent card).
 * Lightweight, translation-ready, and uses only standard WordPress APIs.
 * Nothing is shown to logged-out visitors.

## Screenshots

[⌊Admin settings page: enable toggle, background/text/label color pickers, editable
labels, and the display template selector.⌉⌊Admin settings page: enable toggle, 
background/text/label color pickers, editable labels, and the display template selector
.⌉[

Admin settings page: enable toggle, background/text/label color pickers, editable
labels, and the display template selector.

[⌊Template 1 - Classic Bar (right aligned).⌉⌊Template 1 - Classic Bar (right aligned)
.⌉[

Template 1 – Classic Bar (right aligned).

[⌊Template 2 - Full-width Banner (centered).⌉⌊Template 2 - Full-width Banner (centered)
.⌉[

Template 2 – Full-width Banner (centered).

[⌊Template 3 - Rounded Pill (centered).⌉⌊Template 3 - Rounded Pill (centered).⌉[

Template 3 – Rounded Pill (centered).

[⌊Template 4 - Minimal Inline.⌉⌊Template 4 - Minimal Inline.⌉[

Template 4 – Minimal Inline.

[⌊Template 5 - Card with accent.⌉⌊Template 5 - Card with accent.⌉[

Template 5 – Card with accent.

## Installation

 1. Upload the `dp-username-role-display` folder to the `/wp-content/plugins/` directory,
    or install the plugin through the **Plugins > Add New** screen in WordPress.
 2. Activate the plugin through the **Plugins** screen in WordPress.
 3. Go to **Settings > User Info Settings** to enable the display and choose your colors.

## FAQ

### Who can see the user info?

Only logged-in users see their own username and role. Logged-out visitors see nothing.

### Can I change where it appears?

The info is output using the `wp_body_open` hook, so it appears at the top of the
page body. Most modern themes support this hook.

### Can I change the colors?

Yes. Go to **Settings > User Info Settings** and use the color pickers for the background,
text, and label colors.

### Can I change the “User” and “Role” wording?

Yes. The User Label and Role Label fields on the settings page let you set any text
you like (for example “Logged in as” or “Account”).

### What are the templates?

The plugin includes 5 display templates that change how the info looks on the front
end: a classic right-aligned bar, a full-width banner, a centered rounded pill, 
a minimal inline style, and an accent card. Pick one from the Display Template dropdown
on the settings page.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“DP Username & Role Display” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Dixit Pujara ](https://profiles.wordpress.org/dixitpujara/)

[Translate “DP Username & Role Display” into your language.](https://translate.wordpress.org/projects/wp-plugins/dp-username-role-display)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/dp-username-role-display/),
check out the [SVN repository](https://plugins.svn.wordpress.org/dp-username-role-display/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/dp-username-role-display/)
by [RSS](https://plugins.trac.wordpress.org/log/dp-username-role-display/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * First release in the WordPress.org plugin directory.
 * Displays the logged-in user’s name and role on the front end using the `wp_body_open`
   hook.
 * Settings page with enable/disable toggle.
 * Background, text, and label color pickers.
 * Editable “User” and “Role” label text.
 * 5 selectable front-end display templates.

## Meta

 *  Version **1.0**
 *  Last updated **1 week ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.2 or higher **
 *  Tested up to **7.1**
 *  PHP version ** 7.2 or higher **
 * Tags
 * [login](https://wordpress.org/plugins/tags/login/)[members](https://wordpress.org/plugins/tags/members/)
   [profile](https://wordpress.org/plugins/tags/profile/)[user role](https://wordpress.org/plugins/tags/user-role/)
   [username](https://wordpress.org/plugins/tags/username/)
 *  [Advanced View](https://wordpress.org/plugins/dp-username-role-display/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/dp-username-role-display/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dp-username-role-display/reviews/)

## Contributors

 *   [ Dixit Pujara ](https://profiles.wordpress.org/dixitpujara/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/dp-username-role-display/)