跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Login With

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Login With

作者:STASEO
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Login With – Google Login for WooCommerce, is a simple and secure plugin that adds Google authentication to your WooCommerce store. It allows customers to log in using their Google accounts, providing a quick and familiar login experience that leads to better conversion rates and more sales. With just one click, customers can login with Google — no passwords, no forms, no friction. Faster checkouts mean fewer abandoned carts and more completed purchases. Simple to set up, trusted by users, and built to help your store grow.

External Services

This plugin uses Google OAuth 2.0 for authentication. When a user clicks the “Login with Google” button, the following data is sent to Google’s servers:

  1. Client ID and Client Secret (configured in plugin settings)
  2. User’s email address and basic profile information (name)
  3. Authentication state token for security

This data is used to:
– Verify the user’s Google account
– Retrieve basic profile information
– Create or update the user’s account in your WooCommerce store

The plugin connects to these Google services:
– https://oauth2.googleapis.com/token (for authentication)
– https://www.googleapis.com/oauth2/v2/userinfo (for user profile data)

For more information about Google’s data handling, please review:
– Google’s Terms of Service
– Google’s Privacy Policy

Features

  • Conversion rate and sales booster
  • Adds a “Login with Google” button to WooCommerce login forms
  • Works on both the account page and checkout
  • Secure OAuth 2.0 authentication
  • Automatic user account creation for new Google users
  • Syncs user’s name and email from Google profile
  • Customizable button appearance
  • Mobile-friendly design

Requirements

  • WordPress 5.0 or higher
  • WooCommerce 3.0 or higher
  • PHP 7.2 or higher
  • Google API credentials (Client ID and Client Secret)

安装

  1. Go to Plugins > Add New Plugin > Upload Plugin > Select the zip folder / Upload / Install / Activate
  2. Go to Settings > Login With
  3. Enter your Google API credentials:
    • Client ID
    • Client Secret
  4. Add the Redirect URI to your Google Cloud Console:
    • Go to Google Cloud Console > Credentials
    • Edit your OAuth 2.0 Client ID
    • Add the Redirect URI shown in the plugin settings
  5. Save the settings

Getting Google API Credentials

  1. Go to the Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Google+ API
  4. Go to Credentials
  5. Create an OAuth 2.0 Client ID
  6. Set the application type to “Web application”
  7. Add your website’s domain to authorized JavaScript origins
  8. Add the Redirect URI from the plugin settings
  9. Copy the Client ID and Client Secret to the plugin settings

常见问题

Where can I get Google API credentials?

You can get them from the Google Cloud Console. See the “Getting Google API Credentials” section in the installation instructions.

Can I customize the login button?

Yes, you can customize the button’s appearance by modifying the CSS in the plugin’s style.css file.

Does this work with WooCommerce checkout?

Yes, the Google login button appears on both the account page and during checkout.

评价

Do not download

littleplugins 2026 年 4 月 27 日 1 回复
Plugin downloaded 7000 duplicate images to my site. Author is either a moron or a hacker.
阅读所有1条评价

贡献者及开发者

「Login With」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • STASEO

帮助将「Login With」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.5

  • Hardened popup-to-parent communication after Google login
  • Administrators and Shop Managers no longer sign in with Google by default
  • New Google accounts are created only when WooCommerce customer registration is enabled
  • Improved compatibility with login and two-factor plugins
  • Safer cleanup of leftover media library entries from older versions

1.4

  • Hardened Google login session handling
  • Tightened OAuth return handling
  • Client Secret field is now masked on the settings page
  • Improved OAuth state handling
  • Added a developer filter to control which users may use Google login
  • Login button works correctly with page caching plugins
  • Added timeouts on Google API requests
  • Compatible with WordPress installed in a subdirectory

1.3

  • Removed buggy media library registration that could create duplicate attachments
  • Added automatic cleanup of those leftover attachments on plugin update
  • Additional validation of Google account data
  • Safer handling of missing name fields in the Google response
  • Removed unused code

1.2

  • Fixed popup login flow – popup now closes automatically after successful Google login
  • Parent window now properly refreshes and shows user logged in
  • Added fallback if the parent window cannot be updated directly
  • Improved user experience with login success feedback

1.1

  • Updated compatibility info

1.0

  • Initial release
  • Added Google login functionality
  • Added settings page
  • Added automatic user creation
  • Added mobile-friendly design

额外信息

  • 版本 1.5
  • 最后更新:3 月前
  • 活跃安装数量 30+
  • WordPress 版本 5.0 或更高版本
  • 已测试的最高版本为 7.1.4
  • PHP 版本 7.2 或更高版本
  • 语言
    English (US)
  • 标签
    authenticationgoogleloginsocial loginwoocommerce
  • 高级视图

评级

1 星(最高 5 星)。
  • 0 条 5 星评价 5 星 0
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 1 条 1 星评价 1 星 1

您的评价

查看全部评论

贡献者

  • STASEO

支持

有话要说吗?是否需要帮助?

查看支持论坛

捐助

您愿意支持这个插件的发展吗?

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 周边商品 ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

China 简体中文

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗