Log in with Google 1.4.5 has 7 actions and 13 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Log in with Google fires an action
add_action( 'rtcamp.google_login_services', function( $object ) {
// Your code runs here.
}, 10, 1 );
// Change a value Log in with Google is about to use
add_filter( 'rtcamp.google_default_redirect', function( $url ) {
// Change $url here.
return $url;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filter the default redirect URL in case redirect_to param is not available. * Default to admin URL. */ apply_filters( 'rtcamp.google_default_redirect', admin_url() ); -
/** * Filter user authentication before setting auth cookies. Allows multisite * spam-user checks and lockout plugins hooked to 'authenticate' to run. */ apply_filters( 'authenticate', $wp_user, $wp_user->user_login, '' ); -
/** * Filter the arguments for sending in query. */ apply_filters( 'rtcamp.google_client_args', $client_args ); -
/** * Filter whether to enforce whitelisted domains on login for existing users. */ apply_filters( 'rtcamp.google_enforce_whitelisted_domains_on_login', true, $user ); -
/** * Filter out active modules before modules are initialized. */ apply_filters( 'rtcamp.google_login_modules', $this->active_modules ); -
/** * Define any additional services. */ do_action( 'rtcamp.google_login_services', $this ); -
/** * Check if we need to register the user. */ apply_filters( 'rtcamp.google_register_user', $this->maybe_create_username( $user ) ); -
/** * Filter the scopes. */ apply_filters( 'rtcamp.google_scope', $scope ); -
/** * Fires once the user has been authenticated via Google OAuth. */ do_action( 'rtcamp.google_user_authenticated', $user ); -
/** * Fires once the user has been registered successfully. */ do_action( 'rtcamp.google_user_created', $uid, $user ); -
/** * Fires once the user has been authenticated. */ do_action( 'rtcamp.google_user_logged_in', $user_wp, $user ); -
/** * Do something when token has been verified successfully. */ do_action( 'rtcamp.id_token_verified' ); -
/** * Filter user authentication before setting auth cookies. Allows 2FA, lockout * and approval plugins to hook in. */ apply_filters( 'wp_authenticate_user', $wp_user, '' ); -
/** * Fires after the user has successfully logged in via One Tap. */ do_action( 'wp_login', $wp_user->user_login, $wp_user ); -
apply_filters( 'rtcamp.default_algorithm', OPENSSL_ALGO_SHA256, $algo ); -
apply_filters( 'rtcamp.google_login_button_display', false ); -
apply_filters( 'rtcamp.google_login_state', $state_data ); -
apply_filters( 'rtcamp.google_redirect_url', $this->redirect_uri ); -
do_action( 'rtcamp.login_with_google_exception', $e ); -
apply_filters_deprecated( 'wp_google_login_scopes', [ $plugin_scope, ], '1.0.15', 'rtcamp.google_scope' );
Generated from Log in with Google's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: