From ac05d171b706b1990d68361c39688a8f87b28629 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Tue, 14 Jun 2016 16:02:36 +0800 Subject: [PATCH] Add filter to registration form hidden field --- 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 c22034c9..bf527630 100644 --- a/core/um-actions-register.php +++ b/core/um-actions-register.php @@ -260,7 +260,9 @@ } $role = apply_filters('um_register_hidden_role_field', $role ); - echo ''; + if( $role ){ + echo ''; + } }