public function login(
        User $user,
        $remember = false,
        $secure = ''
    ) {
        wp_set_auth_cookie($user->id, $remember, $secure);

        wp_set_current_user($user->id);
    }
public function login(
        User $user,
        $remember = false,
        $secure = ''
    ) {
        wp_set_auth_cookie($user->id, $remember, $secure);

        wp_set_current_user($user->id);
    }
public function login ( User $ user , $ remember = false , $ secure = '' ) { wp_set_auth_cookie ( $ user -> id , $ remember , $ secure ) ; wp_set_current_user ( $ user -> id ) ; }
Login with User istance.

@param \Assely\Adapter\User $user
@param bool $remember
@param string $secure

@return void
Login with User istance .