Disable User Registration email in wordpress - php

I am creating a wordpress site where i want to create accounts for the user but want to prevent users getting an email confirming there registration. Is there a way or a plugin that does this?

I have 2 possible solutions for you:
1) It's not for the faint of heart, but if you really want to you could try hacking the pluggables.php file in the includes directory. Keep in mind that updating Wordpress would nuke this.
I suspect it would involve modifying this function:
function wp_new_user_notification()
You can find it around line 1190 in pluggables.php.
2) Alternatively I know the old version of the Register-Plus plugin, included an option to disable user registration e-mail notifications.
Presumably the newer Register-Plus-Redux still offers similar functionality.

Related

Google Spreadsheet User login

Okay, So I have a client that wants their wordpress site to only require user to use their email to login. They instead want the site read through a google spreadsheet of all the users. Then if the users email is found in the spreadsheet it allows the user to login.
Before people start screaming, I know its extremely bad from a security stand point, we've told them this. They don't care.
So my question is, has anyone one done this or something similar in the past. How did you do it.
And how would say is the best way to go about doing this. So far I have thought of a few ways to do it.
Secretly embed the doc on a hidden web page then access it.
Some how just access it using APIs
Maybe using google forms as the email entry, and some how use that to search the google docs.
Any ideas or helps, is appreciated greatly. Thank you.
Logging in via an email address is easy, there are already plugins to do it. https://wordpress.org/plugins/wp-email-login/
There is also a plugin for external authentication. Don't know if it does it from a spreadsheet, though you may have a way to sync the spreadsheet to an external DB (via an API perhaps):
https://wordpress.org/plugins/external-db-auth-reloaded/
Would you need the logged in user to have any user-specific account info? Could you get by with allowing each logged in user to essentially be using the same single account in WordPress?
I could see a solution where you hook into wp_authenticate() https://codex.wordpress.org/Plugin_API/Action_Reference/wp_authenticate
And in your hook function call, run out to Google Spreadsheet via their API and see if that email address is found in the list. If so, log them into WP using a preset, single account that's meant to be used for all such users.
Here's some basic info for reading from a Google Sheet via their API:
https://developers.google.com/sheets/samples/reading

Need advanced help, Wordpress & mailchimp

Heyhou!
I have tried to figure this out long time already, but no luck so far.
I have Wordpress site with mailchimp email form, so users are able to join my email list. The problem is:
-When user join the list, Mailchimp send automatically the confirmation email. I have edited it already to meet my requirements, but I need one more thing. I need to place URL where the joined user can download my free file, that URL needs to be one time url and it would redirect to my site where s/he can download the file.
Soooo, which way would be a best way to do that ? The main point is here that nobody can't start share the download link or page so users could download the file without to join my list. Poor English, hope you got the picture.
I'm web developer / PHP programmer, so plug in is not a must, (of course if you know one, let me know) I can make this by myself, but I need your help to solve the logic, how this would be done.
If I just place my website's download link in the Mailchimp confirmation email, there isn't anything which protect file. I need to somehow to crush the link after user is downloaded the file. BUT no manual changes in Mailchimp confirmation email.
There might be some super easy solution for this or not, anyway I'm stuck.
Thank ya!
I have used mailchimp previously and found the only way to push some data into an email, for this example a dynamic URL with a special access code is to set it as an extra bit of data on the users profile via the API.
http://developer.mailchimp.com/documentation/mailchimp/guides/manage-subscribers-with-the-mailchimp-api/
From when I last used Mailchimp you get 30 fields of custom data you can set on each user.
Hope that helps.

Gravity Forms gform_after_submission & LDAP/Active Directory

I'm new to Gravity/Wordpress/PHP - BUT here's what I'm after.
I have Gravity page that asks for username/password.
I'm using this Active Directory Integration Plugin (completely
separate from GF) https://wordpress.org/plugins/active-directory-integration/
The ADI plugin works as expected with the default WP login screen, ie I enter LDAP creds it auth's against my ldap server confirms everything is good and lets me in.
Problem being I don't want to use the default wordpress login. Is there a way to use the GF and the after submission function to call this other plugin/php file to auth against ldap and or check the local WP db should the user not be found in AD?
You will have to implement a function that is triggered by the gform_after_submission-action which then in turn calls the authenticate-action. But I'm not sure that will work...
But as far as I understand your question you want to replace/customize the login screen to something different. If that's the case you might want to have a look for 2 things:
A way to adapt the login-screen to your needs. Have a look at f.i. https://premium.wpmudev.org/blog/customize-login-page/. I did a search in my favourite search engine for "customize wordpress login form"
replace the login URL with something different. For that you might want to have a look at the iThemes-Security-plugin for wordpress which - amongst other excelent security features - allows you to rewrite the login-url to something other than wp-login. It does so in a completely transparent manner that you will have no problems updating your wordpress!
With these two changes you would be able to completely alter the existing login-screen to something individual without having to tweak the authentication mechanisms of wordpress which might result in strange (and insecure as the default login will still be available) behaviour.

How to use Google Login without plugin in WordPress?

I have seen some websites who allows their users to register or log in with social networks. I want to do the same for my WordPress blog, I already started to learn about it, but the more I read, the more I am getting confused. That's why I am asking for the help here.
I want to allow my WordPress blog users to log in or register with Google. I Have already created Client ID, Email address, Client secret, Redirect URIs, JavaScript Origins. But I don't know how to use them.
Well using a plugin for this sort of functionality is absolutely recommended, because you dont have to care about the security and other issues. Even seasonal programmers get a bit confused using the OAuth library but to start with checkout this tutorial it is as simple as it can be.
http://www.w3resource.com/API/google-plus/tutorial.php
Either way you will have to still create your own plugin and once you get the data from the google api, you will have to use a function like wp_create_user or wp_insert_user to register those users. This is pretty much what a (free) out of box plugin can do for you.

Disable Wordpress limit for duplicated user email

I have a very big multisite. And I got a request to enable option that multiple users can use the same email. I found a plugin "Allow Multiple Accounts" which doesn't work properly. I should figure out some other solution for that. I know that I could use something like adding +sometext to every email, so it will show different to Wordpress. Do you have some other solution, that can be done here?
If you have the multisite architecture, users can be shared beetween websites of network.
One user can be assigned to multiple sites.
Can the user sharing solve your problem?
There's a plug in called allow allow-multiple-accounts. Fair warning it hasn't been updated for more than two years but it just might work.

Categories