pmpro_memberslist_expires_column

The Paid Memberships Pro pmpro memberslist expires column hook.

Description

apply_filters( 'pmpro_memberslist_expires_column', (string) $date_i18n, (unknown) $auser ); 

Parameters (2)

0. $date_i18n (string) => date_i18n(get_option('date_format'), $auser->enddate)
The date i18n.
1. $auser (unknown)
The auser.

Usage

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

Defined (4)

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

/adminpages/memberslist.php  
  1. echo apply_filters("pmpro_memberslist_expires_column", date_i18n(get_option('date_format'), $auser->enddate), $auser); 
  1. echo __(apply_filters("pmpro_memberslist_expires_column", "Never", $auser), "pmpro"); 
/adminpages/memberslist-csv.php  
  1. array_push($csvoutput, pmpro_enclose(apply_filters("pmpro_memberslist_expires_column", date_i18n($dateformat, $theuser->enddate), $theuser))); 
  1. array_push($csvoutput, pmpro_enclose(apply_filters("pmpro_memberslist_expires_column", "Never", $theuser)));