pmpro_checkout_end_date

The Paid Memberships Pro pmpro checkout end date hook.

Description

apply_filters( 'pmpro_checkout_end_date', (unknown) $enddate, (unknown) $morder_user_id, (unknown) $morder_membership_level, (unknown) $startdate ); 

Parameters (4)

0. $enddate (unknown)
The enddate.
1. $morder_user_id (unknown)
The morder user id.
2. $morder_membership_level (unknown)
The morder membership level.
3. $startdate (unknown)
The startdate.

Usage

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

Defined (4)

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

/services/twocheckout-ins.php  
  1. $enddate = apply_filters("pmpro_checkout_end_date", $enddate, $morder->user_id, $morder->membership_level, $startdate); 
/services/ipnhandler.php  
  1. $enddate = apply_filters( "pmpro_checkout_end_date", $enddate, $morder->user_id, $morder->membership_level, $startdate ); 
/preheaders/checkout.php  
  1. $enddate = apply_filters( "pmpro_checkout_end_date", $enddate, $user_id, $pmpro_level, $startdate ); 
/includes/updates/upgrade_1_8_9_3.php  
  1. $enddate = apply_filters( "pmpro_checkout_end_date", $enddate, $user_id, $pmpro_level, $startdate );