We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 927de6a + 32ea9a3 commit d14b485Copy full SHA for d14b485
includes/Modules/Sign_In_With_Google.php
@@ -180,7 +180,10 @@ function () {
180
181
// Sign in with Google tag placement logic.
182
add_action( 'template_redirect', array( $this, 'register_tag' ) );
183
- add_action( 'login_redirect', array( $this, 'register_tag' ) );
+ // Used to add the tag registration to the login footer in
184
+ // `/wp-login.php`, which doesn't use the `template_redirect` action
185
+ // like most WordPress pages.
186
+ add_action( 'login_init', array( $this, 'register_tag' ) );
187
188
// Check to see if the module is connected before registering the block.
189
if ( $this->is_connected() ) {
0 commit comments