Просмотр 1 ответа (всего 1)
  • Модератор Юрій

    (@yube)

    Смотрю https://codex.wordpress.org/Plugin_API/Filter_Reference/authenticate
    и вижу

    Parameters

    $user
    (null or WP_User or WP_Error) (required) null indicates no process has authenticated the user yet. A WP_Error object indicates another process has failed the authentication. A WP_User object indicates another process has authenticated the user.

    Default: None

    $username
    (string) (required) The user’s username.

    Default: None

    $password
    (string) (optional) The user’s password (plaintext — NOT encrypted).

    Default: None

    А у Вас первый параметр используется как строка с username.

    add_action( 'authenticate', 'pu_blank_login');
    function pu_blank_login( $user ){
    	$users = get_user_by('login', $user);
    

    Возможно, в этом причина.

Просмотр 1 ответа (всего 1)
  • Тема «Условия авторизации на измененный wp-login» закрыта для новых ответов.