Prevent wp_insert_user from creating duplicate users
I have a custom plugin that automatically creates a new user via wp_insert_user() if the current user does not exist yet. We use data from our remote ldap server to provide the new user’s details (user_login, user_email, etc.) for the wp_insert_user() function call. This works without a hitch on most of our sites, but on … Read more