unique display name

3.68K viewsGeneral
0

Hi Rahul,

i want to make member display name unique, eg: 2 members cant have the same display name when they update profile.

I got the code from

https://github.com/bappi-d-great/WordPress-Protect-Duplicate-nickname-and-display-name/blob/master/code.php

 

but it doesnt work, I am using anspress profile, so i go to my profile page and change my display name to something already exist, save, it doesnt throw error.

my question is, is anspress using different db call or something? do you know what change i need to make to make the code to work?

 

Thanks!