Gets the link to the users edit profile page in the WordPress admin.
<?php get_edit_user_link( $user_id ) ?>
Get the edit user link for the user currently viewing the page.
<a href="<?php echo get_edit_user_link(); ?>">name</a>
Get a link for each editor in the database
$user = new WP_User_Query( array( 'role' => 'editor' )); $editor = $users->get_results(); foreach( $editor as $e ){ $userdata = get_userdata( $e->ID ); echo '<a href="'. get_edit_user_link( $e->ID ) .'">'. esc_attr( $userdata->user_nicename ) .'</a>'; }
get_edit_user_link is located in wp-includes/link-template.php