Email is required.
';
} elseif ( ! is_email( $user_email ) ) {
$err .= 'This email is not valid.
';
} elseif ( email_exists( $user_email ) ) {
$err .= 'This email already exists.
';
}
return $err;
}
//custom register compare password
function custom_registration_compare_password( $password, $confirm_password ){
$err = "";
if ($password != $confirm_password )
$err .= "Passwords do not match.
";
return $err;
}
function get_terms_conditions( $page_id ){
$agree = get_page( $page_id );
$output = "";
$output .= 'Invalid email address.
';
}
}
$form = $msg;
$form .= 'A confirmation email is sent, please check your email.
';
$info = apply_filters( 'confirmation_email_success_message', $info );
}else{
$info = 'You must agree with terms and conditions before you can register.';
$error = apply_filters( 'term_condition_error_message', $error );
if ( $showterm ):
$chkagree = isset( $_POST['chkagree'] ) ? $_POST['chkagree'] : "";
if ( ( $chkagree == 'agree' ) || ( isset( $_POST['registersubmit'] ) ) ){
$output .= get_register_form();
}else{
$output .= '
'. $error .'
';
$output .= get_terms_conditions( $pageid );
}
else:
$output .= get_register_form();
endif;
else:
$output .= '
You are a member of '. get_bloginfo('sitename') .' already.
';
$output = apply_filters( 'already_register_message', $output );
endif;
else:
$output .= '
You must enable user registration from WordPress admin in General Settings.
';
$output = apply_filters( 'enable_registration_message', $output );
endif;
return $output;
}
/** end */