mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +09:00
Add filter to registration form hidden field
This commit is contained in:
@@ -260,7 +260,9 @@
|
||||
}
|
||||
|
||||
$role = apply_filters('um_register_hidden_role_field', $role );
|
||||
echo '<input type="hidden" name="role" id="role" value="' . $role . '" />';
|
||||
if( $role ){
|
||||
echo '<input type="hidden" name="role" id="role" value="' . $role . '" />';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user