• Resolved SybilBoquet

    (@sybilboquet)


    Hi,

    The wordpress hook “login_errors” is ignored (it define the error message).

    It would be wonderful if it were used.

    Thank.

Viewing 1 replies (of 1 total)
  • Plugin Author aviplugins.com

    (@avimegladon)

    login_errors filter will not work with the plugin. To customize error messages for custom errors please use lsw_login_errors filter.

    Example given below.

    
    add_filter( 'lsw_login_errors', 'lsw_custom_login_error_message', 10, 1 );
    function lsw_custom_login_error_message( $error ){	
    	$err_codes = $error->get_error_codes();
    	if ( in_array( 'custom_error', $err_codes ) ) {
    		$error = '<strong>ERROR</strong>: Custom error.';
    	}
    	return $error;
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘filter login_errors not fired’ is closed to new replies.