pmpro_twocheckout_ptpstr

The Paid Memberships Pro pmpro twocheckout ptpstr hook.

Description

apply_filters( 'pmpro_twocheckout_ptpstr', (unknown) $ptpstr, (unknown) $order ); 

Parameters (2)

0. $ptpstr (unknown)
The ptpstr.
1. $order (unknown)
The order.

Usage

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

Defined (1)

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

/classes/gateways/class.pmprogateway_twocheckout.php  
  1. $ptpStr = apply_filters( 'pmpro_twocheckout_ptpstr', $ptpStr, $order );