@klenshop
1. You can try this code snippet for a “show password” eye
add_filter( "um_confirm_user_password_form_edit_field","um_user_password_form_edit_field", 10, 2 );
add_filter( "um_user_password_form_edit_field","um_user_password_form_edit_field", 10, 2 );
function um_user_password_form_edit_field( $output, $set_mode ){
ob_start();
?>
<div id='um-field-show-passwords' style='color: white !important; text-align:left;display:block;'>
<i class='um-faicon-eye-slash'></i>
<a style="color: white !important;" href='#'>Show or hide password</a>
</div>
<script type='text/javascript'>
jQuery('#um-field-show-passwords a').click(function(){
jQuery(this).parent("div").find("i").toggleClass(function() {
if ( jQuery( this ).hasClass( "um-faicon-eye-slash" ) ) {
jQuery( this ).parent("div").find("a").text('Hide password');
jQuery( this ).removeClass( "um-faicon-eye-slash" )
jQuery(".um-form").find(".um-field-password").find("input[type=password]").attr("type","text");
return "um-faicon-eye";
}
jQuery( this ).removeClass( "um-faicon-eye" );
jQuery( this ).parent("div").find("a").text('Show password');
jQuery(".um-form").find(".um-field-password").find("input[type=text]").attr("type","password");
return "um-faicon-eye-slash";
});
return false;
});
</script>
<?php
return $output . ob_get_clean();
}
Install the code snippet into your active theme’s functions.php file
or use the “Code Snippets” plugin.
https://www.ads-software.com/plugins/code-snippets/
2. You can try this new plugin “UM Unique User Account ID”
https://github.com/MissVeronica/um-unique-user-account-id