• 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 ??

Viewing 1 replies (of 1 total)
  • Thread Starter n8r4d3

    (@n8r4d3)

    Ive also tried updating the $user_login to $user_id and $ID with no such luck. — exports of the user database at this point show nothing in the nickname field.

Viewing 1 replies (of 1 total)
  • The topic ‘Set nickname to wordpress userID after creation’ is closed to new replies.