From c1da97e8029bbc798e86333de45a66b71ecf55a0 Mon Sep 17 00:00:00 2001 From: "lokapure.girish" Date: Mon, 16 Dec 2024 19:56:25 +0530 Subject: [PATCH] For login event, send loggedin user's email --- includes/Listeners/Admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Listeners/Admin.php b/includes/Listeners/Admin.php index 5b8d39e9..2d88f3bc 100644 --- a/includes/Listeners/Admin.php +++ b/includes/Listeners/Admin.php @@ -56,7 +56,7 @@ public function view() { public function login( $user_login, $user ): void { $is_admin = array_key_exists( 'administrator', $user->get_role_caps() ); if ( ( $is_admin && $user->get_role_caps()['administrator'] ) || ( $user->get_role_caps() && $user->get_role_caps()['manage_options'] ) ) { - $this->push( 'login' ); + $this->push( 'login', ["user_email" => $user->user_email]); } }