Why does get_users suddenly return duplicates?

Seems like a silly question, but are there exactly 2 users in the database? Or are there more.

The only thing I can see happening is because you are setting to 3, it’s looping back through.

Another thing to try is checking the peterpanpan user, to see if he has the custom_role twice in his user_meta.

Leave a Comment