Login page with a custom login field
Settings page
This plugin help you to choose a custom user field to allow users to login by this custom field instead of username or email on login page. This is helpful for your if you have a custom user field for Mobile number for example. or ID number for the citizens.
Installation steps
- Download the required plugin: Advanced Custom Fields plugin.
- Add field group and show it in User form.
- Add field and make it required for all users.
Uninstall
If in any case you need to rollback and remove the custom field login, you can just delete the selected custom field login by executing this command: wp option update acf_login_field
Or just simply deactivate the whole plugin: wp plugin deactivate acf-login