Thanks, it worked. Is it possible to apply a hook so that when changing the nickname, the username changes? Do the same back?
Because sometimes someone changes their nickname in the profile settings and you still need to change the username.
And so, with any changes, either the nickname or the username will change in both cases.
Hello. So what do i need to add to the function file? So that when i change the username, the nickname also changes?
Below are 2 screenshots. When changing the username, the nickname remains old in the user profile under the avatar, the old nickname @john is displayed. Although i changed my username to john2.
On the contrary, i want the nickname to be the same as the username.
Just so that when the username changes, the nickname also changes.
As you understand, now need to change it 2 times – first the username, then change the nickname in editing the profile.
Please write a hook, i’ll try what happens.