pmpro_member_startdate

The Paid Memberships Pro pmpro member startdate hook.

Description

apply_filters( 'pmpro_member_startdate', (unknown) $wpdb_get_var_sqlquery, (unknown) $user_id, (unknown) $level_id ); 

Parameters (3)

0. $wpdb_get_var_sqlquery (unknown)
The wpdb get var sqlquery.
1. $user_id (unknown)
The user id.
2. $level_id (unknown)
The level id.

Usage

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

Defined (1)

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

/includes/functions.php  
  1. $startdate = apply_filters("pmpro_member_startdate", $wpdb->get_var($sqlQuery), $user_id, $level_id);