From the creators of Nextend Social Login: Meet Mosaic, our new visual theme builder for WordPress.
Join Beta

How to override the userdata (username/email) before registration?

You can override the username or the email in the $userData using the nsl_registration_user_data filter.

Example

Code
add_filter('nsl_registration_user_data', function($userData, $provider){
    $userData['username']=$provider->getAuthUserData('first_name').'-'.$provider->getAuthUserData('last_name');
            
    return $userData;
},10,2);

Available since: 3.0.15

🍪 We use cookies!

We use cookies to enhance your browsing experience, serve personalized content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies. You can manage your preferences or learn more in our Cookie Policy.

Accept all
Reject all
Cookie Policy