Get "edit user url" with user ID?
-
Hello WP Community,
I′m stuck with a little problem here. I want to display online users on the WP Dashboard which is working fine with a little help from a plugin but she′s linking the names to author page urls but those are subscribers hence the links lead to a dead end. I do not know what to put in there to make it work the way I want.
$logged_in_users_list_link .= '<a href="' . get_author_posts_url($user->ID, $user->user_nicename) . '">' . $user->display_name . '</a>, ';
but I want to generate a link like this:
/wp-admin/user-edit.php?user_id=XY
Does someone know how to do that?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get "edit user url" with user ID?’ is closed to new replies.