Forum Replies Created

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

    (@lorenz79)

    hello
    thanks for fast answer
    Yes, I know snippets plugin
    but it’s not possible use because the the message
    ““Password is incorrect. Please try again.””
    of error is generic
    means that does metter if you made a mistache in account or password,
    everytime show only this message.
    so i need implemented a filter in functions.php
    to filter different type of errors.

    like:
    /**
    **
    * Ultima member ,show messagge username is not correct
    */

    add_filter( ‘authenticate’, ‘my_check_username’, 50, 3);

    function my_check_username( $user,$username, $errors ) {

    if ( $user->get_error_code() == ‘invalid_username’ ){

    UM()->form()->add_error( ‘invalid_username’, ‘Usernamen not correct. Please try again’ );
    }

    }

    But i need support for the rest..

Viewing 1 replies (of 1 total)