wp_authenticate () just checks user data, but not actually authenticating - docs. You can use wp_signon , which uses and wp_authenticate : source, like this:
確定! 回上一頁