pmpro_setup_new_user

The Paid Memberships Pro pmpro setup new user hook.

Description

apply_filters( 'pmpro_setup_new_user', (bool) $true, (unknown) $user_id, (unknown) $new_user_array, (unknown) $pmpro_level ); 

Parameters (4)

0. $true (bool) => true
The true.
1. $user_id (unknown)
The user id.
2. $new_user_array (unknown)
The new user array.
3. $pmpro_level (unknown)
The pmpro level.

Usage

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

Defined (1)

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

/preheaders/checkout.php  
  1. } elseif ( apply_filters( 'pmpro_setup_new_user', true, $user_id, $new_user_array, $pmpro_level ) ) {