> Get User Role wordpress plugin resources analysis

Get User Role wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name Get User Role
Version 1.0
Author Dave Legassick
Rating 0
Last updated 2012-11-25 04:46:00
Downloads
550
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
Get User Role plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

Get User Role plugin added 13 bytes of resources to the Home page and 10 bytes of resources to the sample Post page.

Get User Role plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! Get User Role plugin ads no tables to your Wordpress blog database.

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.

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
application screenshot

application

by: manish_gori

54511
0%
Charlene screenshot

Charlene

by: jeremyjaymes

1355
0%