Created
March 22, 2013 21:38
-
-
Save ben72/5224969 to your computer and use it in GitHub Desktop.
Fix me! This should issue an error on using existing email addresses in shopplugin. It should be places in functions.php. It just doesn't work now.. I get 500 (Internal Server Error).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('shopp_customer_registration','ihc_registration_data_validation'); | |
function ihc_registration_data_validation() { | |
if (shopp_email_exists($_POST['email'])) { | |
new ShoppError(__('Email address is already registered with another Shopp customer.','Shopp'), SHOPP_ERR); | |
} | |
return $_POST; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment