Restrict a user meta value to be unique across all users
-
I have a custom user metakey called phone_number, and i want the metakey to only accept unique value, which means two users can not have the same value in that meta key.
Similar function with unique email address for each users.
So the persons gets an error message that will say “phone number already used by another user, please try a different phone number”
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Restrict a user meta value to be unique across all users’ is closed to new replies.