Register EDD guest customers with Contact Form 7 custom registration, disable registration for everyone else.
EDD CF7 Register Guest Buyer is an extension for 2 WordPress plugins:
The purpose of this plugin is to restrict registration on your site only to customers who have bought something on your Easy Digital Downloads site. It’s accomplished by using a custom registration form from Contact Form 7 and the Easy Digital Downloads API.
This plugin is useful if you allow Guest Checkout in your Easy Digital Downloads store, and you also disable registration on your site. This is the case if you want to allow only customers to register – you must disable site-wide registration.
If you allow guest purchases, those guests will eventually return to your site wanting to access areas of your site that are only for registered users (such as support or account history). If you have disabled registration, they will not be able to register and they will be annoyed. But, if you allow the WordPress default registration, then anyone can register on your site.
So, this plugin lets visitors submit a custom Registration form, but will only register those that have made a guest purchase. Free purchases do count as purchases. All others will receive a polite rejection message asking them to register with the email that they used during guest checkout. Unless the visitor happens to have an existing user account, in which case they will receive a kind reminder of their username.
This plugin is very lightweight, consisting of only 1 file. It does not load any
.css files. It will not slow your sight down. It’s perfect if you already use Contact Form 7.
.pot file is included to make it easy for you to translate into other languages.
To see the logic for this plugin’s registration process, see: The Registration Process
For more info, see the Documentation.
Fork on Github.