pms_errors()->add('pms_username_email',__('Please enter a username or email address.','paid-member-subscriptions'));
else{
$user='';
// verify if it's a username and a valid one
if(!is_email($username_email)){
if(username_exists($username_email)){
$user=get_user_by('login',$username_email);
}
else$error=true;//pms_errors()->add('pms_username_email',__( 'The entered username doesn\'t exist. Please try again.', 'paid-member-subscriptions'));
}
//verify if it's a valid email
if(is_email($username_email)){
if(email_exists($username_email)){
$user=get_user_by('email',$username_email);
}
else$error=true;//pms_errors()->add('pms_username_email',__( 'The entered email wasn\'t found in our database. Please try again.', 'paid-member-subscriptions'));
$recoveruserMailMessage1 = sprintf(__('Someone has just requested a password reset for the following account: <b>%1$s</b><br/><br/>If this was a mistake, just ignore this email and nothing will happen.<br/>To reset your password, visit the following link: %2$s', 'paid-member-subscriptions'), $username_email, '<a href="' . esc_url(add_query_arg(array('loginName' => urlencode( $requestedUserLogin ), 'key' => $key), pms_get_current_page_url())) . '">' . esc_url(add_query_arg(array('loginName' => urlencode( $requestedUserLogin ), 'key' => $key), pms_get_current_page_url())) . '</a>');