Set nickname to wordpress userID after creation
-
Im using Paid Memberships Pro to sign users up, but need to set their nickname to reflect their wordpress user-ID after the creation is done as that will be their “membership number” that is called by the printable membership card.
I will need to remove the ability to change the nickname or display it in the users profile page, but i realize that can be easily customized at this point.
I think im close…. i found the $nickname section in user.php, but changing
$nickname = empty( $userdata[‘nickname’] ) ? $user_login : $userdata[‘nickname’];
—–TO THE FOLLOWING—–
$nickname = empty( $userdata[‘nickname’] ) ? $user_ID : $userdata[‘nickname’];
does not work and seems to just break the nickname assignment as my testing reveals…
thoughts or suggestions anyone?
Thanks all ??
- The topic ‘Set nickname to wordpress userID after creation’ is closed to new replies.