WordPress plugin intelligence profile

Log in with Google

Minimal plugin that allows WordPress users to log in using Google.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.0
Current version1.4.4
WordPress coverageTested up to WordPress 7.0
Minimum stackWP 5.5 · PHP 7.4
Directory statusactive
Last directory update13 Aug 20262mo ago
Active installations6K+Adoption metric — not a quality score
WordPress.org rating4.6 / 5 from 17 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Log in with Google version 1.4.4 as active, updated 2mo ago and tested up to WordPress 7.0.

Overview

About this plugin

Ultra minimal plugin to let your users login to WordPress applications using their Google accounts. No more remembering hefty passwords!

Initial Setup

-

Create a project from Google Developers Console if none exists.

-

Go to Credentials tab, then create credential for OAuth client.

  • Application type will be Web Application
  • Add YOUR_DOMAIN/wp-login.php in Authorized redirect URIs

-

This will give you Client ID and Secret key.

-

php using the following code snippet:

define( 'WP_GOOGLE_LOGIN_CLIENT_ID', 'YOUR_GOOGLE_CLIENT_ID' );

define( 'WP_GOOGLE_LOGIN_SECRET', 'YOUR_SECRET_KEY' );

Browser support

These browsers are supported. Note, for example, that One Tap Login is not supported in Safari.

How to enable automatic user registration

You can enable user registration either by

– Enabling Settings > WP Google Login > Enable Google Login Registration

OR

  • Adding

define( 'WP_GOOGLE_LOGIN_USER_REGISTRATION', 'true' );

php file.

Note: If the checkbox is ON then, it will register valid Google users even when WordPress default setting, under

Settings > General Settings > Membership > Anyone can register checkbox

is OFF.

Restrict user registration to one or more domain(s)

com users). If you are planning to use this plugin on a private, internal site, then you may like to restrict user registration to users under a single Google Suite organization. This configuration variable does that.

Add your domain name, without any schema prefix and www, as the value of WP_GOOGLE_LOGIN_WHITELIST_DOMAINS constant or in the settings Settings > WP Google Login > Whitelisted Domains. You can whitelist multiple domains. Please separate domains with commas.

See the below example to know how to do it via constants:

com' );

Note: If a user already exists, they will be allowed to login with Google regardless of whether their domain is whitelisted or not. Whitelisting will only prevent users from registering with email addresses from non-whitelisted domains.

Hooks

For a list of all hooks please refer to this documentation.

wp-config.php parameters list

-

WP_GOOGLE_LOGIN_CLIENT_ID (string): Google client ID of your application.

-

WP_GOOGLE_LOGIN_SECRET (string): Secret key of your application

-

WP_GOOGLE_LOGIN_USER_REGISTRATION (boolean) (optional): Set true If you want to enable new user registration. By default, user registration defers to Settings > General Settings > Membership if constant is not set.

-

WP_GOOGLE_LOGIN_WHITELIST_DOMAINS (string) (optional): Domain names, if you want to restrict login with your custom domain. By default, it will allow all domains. You can whitelist multiple domains.

BTW, We’re Hiring!

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • google login
  • sign in
  • authentication
  • oauth
  • sso
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 7.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 7.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.0
Minimum requirementsWordPress 5.5 · PHP 7.4
Update activity13 Aug 20262mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.