Title: is_user_admin
Published: April 25, 2014
Last modified: February 24, 2026

---

# is_user_admin(): bool

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#wp--skip-link--target)

Determines whether the current request is for a user admin screen.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#description)󠁿

e.g. `/wp-admin/user/`

Does not check if the user is an administrator; use [current_user_can()](https://developer.wordpress.org/reference/functions/current_user_can/)
for checking roles and capabilities.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#return)󠁿

 bool True if inside WordPress user administration pages.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#source)󠁿

    ```php
    function is_user_admin() {
    	if ( isset( $GLOBALS['current_screen'] ) ) {
    		return $GLOBALS['current_screen']->in_admin( 'user' );
    	} elseif ( defined( 'WP_USER_ADMIN' ) ) {
    		return WP_USER_ADMIN;
    	}

    	return false;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/load.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/load.php#L1431)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/load.php#L1431-L1439)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_dashboard_right_now()](https://developer.wordpress.org/reference/functions/wp_dashboard_right_now/)`wp-admin/includes/dashboard.php` |

Dashboard widget that displays some basic stats about the site.

  | 
| [wp_dashboard_setup()](https://developer.wordpress.org/reference/functions/wp_dashboard_setup/)`wp-admin/includes/dashboard.php` |

Registers dashboard widgets.

  | 
| [self_admin_url()](https://developer.wordpress.org/reference/functions/self_admin_url/)`wp-includes/link-template.php` |

Retrieves the URL to the admin area for either the current site or the network depending on context.

  | 
| [get_edit_profile_url()](https://developer.wordpress.org/reference/functions/get_edit_profile_url/)`wp-includes/link-template.php` |

Retrieves the URL to the user’s profile editor.

  | 
| [WP_Admin_Bar::add_menus()](https://developer.wordpress.org/reference/classes/wp_admin_bar/add_menus/)`wp-includes/class-wp-admin-bar.php` |

Adds menus to the admin bar.

  | 
| [wp_admin_bar_site_menu()](https://developer.wordpress.org/reference/functions/wp_admin_bar_site_menu/)`wp-includes/admin-bar.php` |

Adds the “Site Name” menu.

  |

[Show 1 more](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/is_user_admin/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fis_user_admin%2F)
before being able to contribute a note or feedback.