Codex tools: Log in
Example usage:
function check_fields($errors, $login, $email) {
$errors->add('demo_error',__('This is a demo error, and will halt registration'));
return $errors;
}
add_filter('registration_errors', 'check_fields', 10, 3);
Return to Plugin API/Filter Reference