Forum Replies Created
- AuthorPosts
- sheridandoyleParticipant
I’m not 100% convinced. I’ve just added a code snippet that has disabled the mandatory email for WordPress users and you can see the code snippet in the link below. I’ve also attached a screenshot to show email is no longer required for WordPress users.
Website: https://www.wppluginsforyou.com/how-to-create-users-without-email-in-wordpress/
Snippet:
// This will suppress empty email errors when submitting the user form
add_action(‘user_profile_update_errors’, ‘my_user_profile_update_errors’, 10, 3 );
function my_user_profile_update_errors($errors, $update, $user) {
$errors->remove(’empty_email’);
}// This will remove javascript required validation for email input
// It will also remove the ‘(required)’ text in the label
// Works for new user, user profile and edit user forms
add_action(‘user_new_form’, ‘my_user_new_form’, 10, 1);
add_action(‘show_user_profile’, ‘my_user_new_form’, 10, 1);
add_action(‘edit_user_profile’, ‘my_user_new_form’, 10, 1);
function my_user_new_form($form_type) {
?>
<script type=”text/javascript”>
jQuery(‘#email’).closest(‘tr’).removeClass(‘form-required’).find(‘.description’).remove();
// Uncheck send new user email option by default
<?php if (isset($form_type) && $form_type === ‘add-new-user’) : ?>
jQuery(‘#send_user_notification’).removeAttr(‘checked’);
<?php endif; ?>
</script>
<?php
}Attachments:
You must be logged in to view attached files.sheridandoyleParticipantThank you for your response but that is not going to work. I would need to create over 100 test email addresses and I do not have the time to do that. I am willing to pay someone to make the email on sign-up optional. Are you able to provide me an approximate quote?
sheridandoyleParticipantHi, that is not the way I wish to use the accounts for the time being.
Are you saying there is no code snippet to allow stores to be created without an email? I would like for the username and password to only be mandatory.
I need to create over 100 stores which I will add myself. The business owners can email me if they wish to claim their account at a later date. They can add their email then.
sheridandoyleParticipantHi, thank you for your response. I do not have the option to mark an item as shipped in the orders section. Have I missed something in the settings section?
sheridandoyleParticipantGreat, thank you!
sheridandoyleParticipantHow did you get it working if I may ask?
- AuthorPosts