Not getting email notification, login with email, and add fields.
-
1 – Seems that wordpress changed the function to send mails.
https://codex.www.ads-software.com/Function_Reference/wp_new_user_notification
changed the line around 290 ALRRegister.phpfrom:
wp_new_user_notification( $user_obj->ID )
to:
wp_new_user_notification( $user_obj->ID , null , 'both' );
2 – Login using just emails.. its a hack, but it works.
add to register.js
$document.on('keyup change', '#zm_alr_register_email', function(){ //$("#zm_alr_register_user_name").hide(); var $pastemail = $("#zm_alr_register_user_name"); var $copyusername = $('#zm_alr_register_email').val(); $pastemail.val( $copyusername ); });
you can hide the field with some css
s.zm_alr_form_field_container.zm_alr_text_container.zm_alr_register_text_container { display: none; }
3- I’m using woocommerce, that already have firstname and lastname set.
I’m looking to use the name and lastname field on the modal register box.When i try to use the snippet below, the registration doesnt work. and i do not need any new field, but an existing one. Any tips on this?
https://gist.github.com/zanematthew/e581e72627980d113d8b
https://www.ads-software.com/plugins/zm-ajax-login-register/
- The topic ‘Not getting email notification, login with email, and add fields.’ is closed to new replies.