Filter to proceed with setting up the new user and membership after the checkout page is submitted.


apply_filters( 'pmpro_setup_new_user', bool $pmpro_setup_new_user, int $user_id, array $new_user_array, object $pmpro_level );

Parameters

$pmpro_setup_new_user
bool; Return true or false to proceed with inserting the user (default: true)
$user_id
int; the user ID
$new_user_array
array; The user data for the user to be created
$pmpro_level
object; The level object for this checkout

Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/preheaders/checkout.php

View in Source Code