Title: [Plugin: AmR Users] user links
Last modified: August 19, 2016

---

# [Plugin: AmR Users] user links

 *  [acub](https://wordpress.org/support/users/acub/)
 * (@acub)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-amr-users-user-links/)
 * I know your plugin is intended primarily to the csv export and by use of admins
   only. However, I’m using it to generate some custom userlists based on custom
   usermeta.
 * Is there any simple way of setting lists to display user_url instead of edit_user?
   It would be most helpfull if I had a way of changing this option based on wether
   the user viewing the list has or does not have editing rights for users, but 
   changing it globally would do the trick too (I have an edit user link in each
   of the users’ pages).
 * Thank you.
 * Later edit: looking through plugin files I’m guessing it has to do with the use
   of the amr_format_user_cell function. Please correct me if I’m wrong.
 * [http://wordpress.org/extend/plugins/amr-users/](http://wordpress.org/extend/plugins/amr-users/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-amr-users-user-links/#post-1979428)
 * When you say
 * > display user_url instead of edit_user?
 * ,
    I assume you mean the link behind the user_login field?
 * In that case you want to change line 355
 * currently:
 * `if (is_object($u) and isset ($u->ID) ) return('<a href="'.WP_SITEURL.'/wp-admin/
   user-edit.php?user_id='.$u->ID.'">'.$v.'</a>');`
 * to something like
 *     ```
       if (is_object($u) and isset ($u->ID) )
           return('<a href="'.$u->user_url.'">'.$v.'</a>');
       ```
   
 * I am planning an up date to the plugin to allow more flexibility. Probably allow
   filters on the fields something like that so people can add their own bits.
 * Realistically it will be a couple of weeks at least before I get to it.
 *  Thread Starter [acub](https://wordpress.org/support/users/acub/)
 * (@acub)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-amr-users-user-links/#post-1979458)
 * Yes, that’s exactly what I needed. Thank you.
    I’ll also add a condition before
   it to only change the links for users that cannot edit other users.
 * Thank you very much.
 * As for added functionality, well… it’s always welcome 🙂
    I’d put a link=”” parameter
   to the shortcode with possible values of all cases in amr_format_user_cell function,
   eventually adding another param of editlinks=”” with values of 0 or 1 making 
   links immune (or not) to change for users with edit user capabilities.
 * And filters would be nice, indeed.
 * Thank you for sharing your work.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: AmR Users] user links’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amr-users_f6f6f4.svg)
 * [amr users](https://wordpress.org/plugins/amr-users/)
 * [Support Threads](https://wordpress.org/support/plugin/amr-users/)
 * [Active Topics](https://wordpress.org/support/plugin/amr-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amr-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amr-users/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [acub](https://wordpress.org/support/users/acub/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-amr-users-user-links/#post-1979458)
 * Status: not resolved