Definition:
function is_user_admin() {}
Whether the current request is for a user admin screen /wp-admin/user/
Does not inform on whether the user is an admin! Use capability checks to tell if the user should be accessing a section or not.
Return values
returns:True if inside WordPress user administration pages.
Source code
function is_user_admin() { if ( defined( 'WP_USER_ADMIN' ) ) return WP_USER_ADMIN; return false; }
9937
No comments yet... Be the first to leave a reply!