Title: Adding a custom link
Last modified: August 21, 2016

---

# Adding a custom link

 *  Resolved [Alternatewords](https://wordpress.org/support/users/alternatewords/)
 * (@alternatewords)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adding-a-custom-link/)
 * I know this has been brought up before and I’ve also read all the documentation
   on wpusersplugin.com. However, I am still stuck.
 * On my site I am using User Profile Made Easy ([http://profileplugin.com/](http://profileplugin.com/)).
   It uses user_ID to retrieve any users profile, e.g. xxxxx.com/profile/?viewuser
   =1. I’d like to add this to the column display_name. I know in a previous version
   I was able to do this via ‘Before’ and ‘After’ (I did something like this for
   a private messaging plugin). But for the life of me I can’t remember how I did
   it.
 * I wouldn’t mind adding a custom function, but am not sure how. I tried this example,
   reasoning I could adapt it to my needs:
 *     ```
       if (!function_exists('ausers_format_user_nicename')) {
        function ausers_format_user_nicename($v, $u) {
        if (!empty($u->user_url))
        return ('user_url.'">'.$v.'');
        else return ($v);
        }
        }
       ```
   
 * But I am greeted with a white screen in amr. Any assistance would be greatly 
   appreciated.
 * [http://wordpress.org/plugins/amr-users/](http://wordpress.org/plugins/amr-users/)

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

 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adding-a-custom-link/#post-4251020)
 * white space usually means you have something wrong in your php code.
 * also the html you are returning there is badly broken.
 * try
 * `return ('<href="'.$u->user_url.'">'.$v.'</a>');`
 * then when you have that working, replace the user url with whatever you need 
   to generate the profile link that that plugin generates.
 *  Thread Starter [Alternatewords](https://wordpress.org/support/users/alternatewords/)
 * (@alternatewords)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adding-a-custom-link/#post-4251063)
 * Sorry, still couldn’t get this to work. I resorted to directly editing an existing
   function (edit_user) to accomplish what I need. I know it’s not recommended and
   I have to change after each plugin update but I’ll have to make due, I am not
   a PHP programmer and no time time to dig into this.
 * Thanks anyway.

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

The topic ‘Adding a custom link’ 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/)

## Tags

 * [Backend](https://wordpress.org/support/topic-tag/backend/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [profile](https://wordpress.org/support/topic-tag/profile/)

 * 2 replies
 * 2 participants
 * Last reply from: [Alternatewords](https://wordpress.org/support/users/alternatewords/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/adding-a-custom-link/#post-4251063)
 * Status: resolved