pmpro_confirmation_url

The Paid Memberships Pro pmpro confirmation url hook.

Description

apply_filters( 'pmpro_confirmation_url', (unknown) $rurl, (unknown) $user_id, (unknown) $pmpro_level ); 

Parameters (3)

0. $rurl (unknown)
The rurl.
1. $user_id (unknown)
The user id.
2. $pmpro_level (unknown)
The pmpro level.

Usage

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

Defined (1)

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

/preheaders/checkout.php  
  1. $rurl = apply_filters( "pmpro_confirmation_url", $rurl, $user_id, $pmpro_level );