From 6f7996e11ea9da24a1c7ab8b99eb2391ab38d6a8 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Wed, 18 Jan 2017 09:23:23 +0800 Subject: [PATCH] Fix loop notifications on user creation in the back-end --- core/um-actions-register.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/um-actions-register.php b/core/um-actions-register.php index af904bb8..db032200 100644 --- a/core/um-actions-register.php +++ b/core/um-actions-register.php @@ -152,7 +152,9 @@ do_action('um_post_registration', $user_id, $args); - do_action('user_register', $user_id ); + if( ! is_admin() ){ + do_action('user_register', $user_id ); + } }