Change and/or modify the user data that is created for the user after checkout. This is useful for changing the user login, password, email, and other user data.


/**
 * Filter new user data.
 *
 * @param array $user_data {
 *    @type string user_login The username.
 *    @type string user_pass  The user password.
 *    @type string user_email The user email address.
 *    @type string first_name The user's first name.
 *    @type string last_name  The user's last name.
 * }
 *
 * @return array $user_data Modified/updated user data.
 */
apply_filters( 'pmpro_checkout_new_user_array', $user_data );

Parameters

$user_data
array

Return Value

$user_data


Source

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

View in Source Code

Related Articles and Recipes

Set the Member’s Display Name to Username at Membership Checkout By Travis Lima

Customizing Usernames on Your Membership Site By Travis Lima