Title: [Plugin: User Access Manager] tweak for function addUserColumn
Last modified: August 20, 2016

---

# [Plugin: User Access Manager] tweak for function addUserColumn

 *  [Dric](https://wordpress.org/support/users/dric1107/)
 * (@dric1107)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-tweak-for-function-addusercolumn/)
 * Hi,
    Your function breaks display of other custom columns : their data values
   are empty. It’s because you don’t return the value ($empty) if columnName is 
   not uam_access.
 * I suggest you a little patch :
 *     ```
       public function addUserColumn($empty, $columnName, $id)
           {
               if ($columnName == 'uam_access') {
                   return $this->getIncludeContents(
                       UAM_REALPATH.'tpl/userColumn.php',
                       $id,
                       'user'
                   );
               }else{
                 return $empty;
               }
           }
       ```
   
 * This should solve the problem.
 * [http://wordpress.org/extend/plugins/user-access-manager/](http://wordpress.org/extend/plugins/user-access-manager/)

Viewing 1 replies (of 1 total)

 *  [Number 6](https://wordpress.org/support/users/number-6/)
 * (@number-6)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-tweak-for-function-addusercolumn/#post-2477226)
 * Hi Dric, I know this is an old post but I just wanted to say thanks. I ran into
   the problem myself and after spending ages stepping through code with the debugger
   I came to the same conclusion. I wasn’t sure though so it was great to find your
   post confirming it.
 * Just for reference for anyone else trying to find this, for User Access Manager
   version 1.2.2 the function addUserColumn is on line 1189 of plugins/user-access-
   manager/class/UserAccessManager.class.php

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: User Access Manager] tweak for function addUserColumn’ is closed
to new replies.

 * ![](https://ps.w.org/user-access-manager/assets/icon.svg?rev=1563783)
 * [User Access Manager](https://wordpress.org/plugins/user-access-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-access-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-access-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/user-access-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-access-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-access-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Number 6](https://wordpress.org/support/users/number-6/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-user-access-manager-tweak-for-function-addusercolumn/#post-2477226)
 * Status: not resolved