WordPress: Block automatically user creation in OneAll Social Plugin
Today I tested the OneAll social plugin. The only think I noticed that I don’t like too much (at least on my personal blog) is that there is no way to lock the automatic user registration. That means a user can, with a social account, create a user for my blog, and, even if he has no right to accomplished operations on the blog… I don’t want it!!
So I made a little fix in a plugin file, waiting for the official “fix” to this.
Edit communication.php file in /wp-content/plugins/oa-social-login/includes folder. And change the line 172 (before there is a comment New user) with this:
if (!is_numeric ($user_id) && get_option('users_can_register'))
That means we just check the wordpress main option that allow the user creation. So if you normally allow registration for your site nothing change, but, as by default for wordpress, registrations is locked, plugin will follow this setting!
Hope this could help someone!