Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter mac1929

    (@mac1929)

    BTW this will be more or less just keeping the check that exists in the default login function:

    
    	$user = get_user_by('login', $username);
    
    	if ( !$user ) {
    		return new WP_Error( 'invalid_username',
    			__( '<strong>ERROR</strong>: Invalid username.' ) .
    			' <a href="' . wp_lostpassword_url() . '">' .
    			__( 'Lost your password?' ) .
    			'</a>'
    		);
    	}
    • This reply was modified 9 years, 6 months ago by mac1929. Reason: format code
Viewing 1 replies (of 1 total)