Description
This filter allows you to filter each user’s data to be displayed in the user list as an array.
Parameters
$rows
(array) (required) An array of the user’s data.
Example
add_filter( 'wpmem_ul_user_rows', 'my_ul_user_rows' );
function my_ul_user_rows( $rows ) {
/*
* This example adds a row to the user's profile in the
* main user list that links to a hypothetical contact
* page that needs the user's ID (which is a field
* available in the array).
*/
$link = site_url() . 'contact/?contact_id=' . $rows['ID'];
$name = $rows['first_name'];
$rows['link'] = '<a href="' . $link . '">' . $name . '</a>';
return $rows;
}Changelog
Introduced in version 1.5.
Source
wpmem_ul_user_rows is located in includes/class-wp-members-user-list.php