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.
Changelog
Introduced in version 1.5.
Source
wpmem_ul_user_rows is located in wp-members-user-list.php
Usage
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; }
Code Snippet Library [Subscriber Content]
- User List URL Rewrite for Nicer Profile URLs
- Create an option for users to exclude a specific field from the User List profile
See a list of all filter and action hooks
Welcome to RocketGeek Interactive › Forums › Plugins › WP-Members › WP-Members Documentation › Filter and Action Hooks › wpmem_ul_user_rows