內容簡介
需要 WP-Members 外掛。使用會員的電子郵件作為他們的使用者名稱。移除填寫使用者名稱的必要 (如果 wp-members 外掛已啟用)。從表單中更改或移除適當的項目,並添加電子郵件地址作為使用者名稱。如果不再使用 WP-Members,WordPress 的本機註冊和登入功能中有許多外掛提供此功能。
運作方式:
這個外掛不會對登入表單做出任何事情。它處理 WP-Members 註冊表單,移除使用者名稱作為必填欄位,並使用輸入的電子郵件自動填充它。為了向後兼容性(對於在安裝此外掛之前被創建的使用者),如果他們使用電子郵件登入而非使用者名稱,外掛會嘗試通過電子郵件查找使用者名稱。
外掛還對訂閱者做一些奇怪的事情:
它不允許他們訪問儀表板。這是為了防止他們更改電子郵件地址(並使他們的使用者名稱 / 電子郵件不同步)
它關閉了他們的管理工具欄。讓我們面對現實,他們不需要那個。
感謝Beau Lebens提供他的版本為 4.6.3 的Email Login 外掛函式。我從他那裡突擊了這個函式,以幫助實現向後兼容性。
外掛標籤
開發者團隊
② 後台搜尋「Email as Username for WP-Members」→ 直接安裝(推薦)
原文外掛簡介
Requires WP-Members to be in use. Uses members’ emails as their usernames. Removes the need to create a username (if wp-members is in use). Changes or removes appropriate items from forms, and adds the email address as the username. If WP-Members is no longer in use, there are plenty of plugins that offer this capability for WP’s native registration and login functions
How it works:
This plugin doesn’t do much of anything with the login form. It deals with the WP-Members registration form, removing username as a field to fill out and filling it automatically with the email entered. For backward compatibility (for users that were created before this plugin was installed), the plugin will try looking up the username by email if they log in with that instead of their username.
The plugin also does some funky things with subscribers:
It doesn’t allow them access to the dashboard. This is to keep them from changing their email address (and un-syncing their username/email)
It turns off the admin bar for them. Let’s face it, they don’t need that anyways.
Props to Beau Lebens for his Email Login plugin. I stole his function (from version 4.6.3) to help with backward compatibility.
