This page redirects to an external site: https://developer.wordpress.org/reference/functions/get_edit_user_link/
Gets the link to the users edit profile page in the WordPress admin.
<code style="color: #000000"> <span style="color: #0000BB"><?php get_edit_user_link</span><span style="color: #007700">( </span><span style="color: #0000BB">$user_id </span><span style="color: #007700">) </span><span style="color: #0000BB">?></span> </code>
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