跳到内容

DP Username & Role Display

v1.1

Dixit Pujara · 2026年8月27日 上架

Show the logged-in user's name, role, and profile icon anywhere - editable labels, custom colors, 5 templates, and a shortcode.

正在使用
10 以下
评分
暂无
累计下载
299
最近更新
2026年9月7日
需要 WordPress 5.2+已测试到 7.1.5PHP 7.2+

贡献者

截图

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 2 - Full-width Banner (centered).
Template 2 - Full-width Banner (centered).
Template 3 - Rounded Pill (centered).
Template 3 - Rounded Pill (centered).
Template 4 - Minimal Inline.
Template 4 - Minimal Inline.
Template 5 - Card with accent.
Template 5 - Card with accent.

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).
  • Optionally show the user’s profile icon (avatar) next to their name, with an adjustable size.
  • Place the block anywhere with the [dp_user_role_display] shortcode – every setting can be overridden per shortcode.
  • Built-in shortcode generator on the settings page: it updates live as you change options, ready to copy and paste.
  • Lightweight, translation-ready, and uses only standard WordPress APIs.
  • Ships with translations for Spanish, French, German, Hindi, and Gujarati.
  • Nothing is shown to logged-out visitors.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums