pmpro_members_list_user_link

The Paid Memberships Pro pmpro members list user link hook.

Description

apply_filters( 'pmpro_members_list_user_link', (unknown) $userlink, (unknown) $theuser ); 

Parameters (2)

0. $userlink (unknown)
The userlink.
1. $theuser (unknown)
The theuser.

Usage

To run the hook, copy the example below.
  1. $userlink = apply_filters( 'pmpro_members_list_user_link', $userlink, $theuser ); 
  2.  
  3. if ( !empty( $userlink ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the pmpro_members_list_user_link callback 
  2. function filter_pmpro_members_list_user_link( $userlink, $theuser ) { 
  3. // make filter magic happen here... 
  4. return $userlink
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pmpro_members_list_user_link', 'filter_pmpro_members_list_user_link', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pmpro_members_list_user_link', 'filter_pmpro_members_list_user_link', 10, 2 ); 

Defined (2)

The filter is defined in the following location(s).

/adminpages/reports/login.php  
  1. $userlink = apply_filters("pmpro_members_list_user_link", $userlink, $theuser); 
/adminpages/memberslist.php  
  1. $userlink = apply_filters("pmpro_members_list_user_link", $userlink, $theuser);