WordPress.org

Ready to get started?Download WordPress

Forums

User Access Manager
tweak for function addUserColumn (2 posts)

  1. Dric
    Member
    Posted 2 years ago #

    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/

  2. Number 6
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic