Skip to content

Instantly share code, notes, and snippets.

@ben72
Created March 22, 2013 21:38
Show Gist options
  • Save ben72/5224969 to your computer and use it in GitHub Desktop.
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).
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