From 82874cc046744d5e4e70c9801fd085fbb98a09c3 Mon Sep 17 00:00:00 2001 From: Angelo Cali Date: Tue, 1 Jun 2021 16:32:32 +0200 Subject: [PATCH] add hook to run code after auth cookie is set --- one-time-login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/one-time-login.php b/one-time-login.php index 69ad6a3..a04e6c8 100644 --- a/one-time-login.php +++ b/one-time-login.php @@ -152,6 +152,7 @@ function one_time_login_handle_token() { do_action( 'one_time_login_logged_in', $user ); update_user_meta( $user->ID, 'one_time_login_token', $tokens ); wp_set_auth_cookie( $user->ID, true, is_ssl() ); + do_action( 'one_time_login_after_auth_cookie_set', $user ); wp_safe_redirect( admin_url() ); exit; }