PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. Roles
  4. Get User Role
Get User Role icon

Get User Role

A simple plugin that add's the get_user_role() function to your site.

By theslink2000·Roles·Free
00
·10 active installs·Updated 13 years ago
DownloadVisit HomepageCompare

As of April 2026, Get User Role is a WordPress roles plugin with 10 active installations and a 0/5 rating0. It has been downloaded 1.8K+ times in total. Requires WordPress 3.0.1+ and PHP false+. Available on WordPress.org since 2012. Last updated 13 years ago — may have compatibility concerns. Top alternative: Members – Membership & User Role Editor….

0/5Rating
10active installs
1.8K+total downloads
14 yearssince 2012

Overview

This plugin doesn’t do anything on the surface but if you call the get_user_role() function then you can achieve one of two results.

Function

Returns the role of the specified user.

Usage

Parameters

$user_id
(string)(optional) ‘username’

Return Values

(string) If no $user_id is specified in the function call the function will return the role of the currently logged in user, otherwise the role of the specified user will be returned.

Examples

$role = get_user_role(“admin”);

This will return “administrator”.

Notes

This plugin may call the following global variables:

$current_user
$wp_roles
$wpdb

This plugin is designed to work with any correctly made custom roles.

Read full description on WordPress.org

Ratings & Reviews

00 reviews
5 ★
0
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Compatibility

WordPress3.0.1+ requiredTested up to 3.4.2
PHPfalse+ required

Top Alternatives to Get User Role

Members – Membership & User Role Editor Plugin icon
Members – Membership & User Role Editor…
4.9300K+ installsUpdated 1 month ago
ViewCompare
If Menu – Visibility control for Menus icon
If Menu – Visibility control for Menus
4.160K+ installsUpdated 1 year ago
ViewCompare
View Admin As icon
View Admin As
4.99.0K+ installsUpdated 1 year ago
ViewCompare
Expire Users icon
Expire Users
4.84.0K+ installsUpdated 6 months ago
ViewCompare
Restrict Media Library Access icon
Restrict Media Library Access
52.0K+ installsUpdated 2 years ago
ViewCompare
View all roles plugins →

Frequently Asked Questions

Changelog

1.0

  • Creation.
View full changelog on WordPress.org

Contributors

theslink2000theslink2000
Plugin Info
Version
1.0
Last Updated
Nov 25, 2012
WP Requires
3.0.1+
Tested Up To
3.4.2
PHP Requires
false+
Active Installs
10
Downloads
1.8K+
Added
Nov 25, 2012
Business
Free

Tags

rolesusers

Developer

T
theslink2000
1 plugins0.0M+ total installs
View all plugins →

Quick Compare

Get User Role vs Members – Membership & User Role Editor…→Get User Role vs If Menu – Visibility control for Menus→Get User Role vs View Admin As→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.