| 开发者 |
digitalpritam
readymadewp |
|---|---|
| 更新时间 | 2026年10月30日 03:09 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp smartusername rename, wp smartusername check and wp smartusername log for agencies and scripts.illegal_user_logins filter are refused.manage_options capability (manage_network_users on multisite) can rename other users, and only users they are allowed to edit.sanitize_user() in strict mode and validate_username(); output is escaped.wp_mail() to the renamed user only.
For developers
smartusername_username_changed( $user_id, $old_username, $new_username, $change ) fires after each rename.smartusername_log_limit changes how many log entries are kept (default 50).smartusername_notification_email changes the email (to, subject, message, headers).smartusername_risky_usernames changes the list used by the security check.wp smartusername rename <user> <new-username> [--slug] [--notify], wp smartusername check <user> <new-username>, wp smartusername exposure, wp smartusername log [--format=<format>].smartusername folder to /wp-content/plugins/, or install it from Plugins > Add New.Go to SmartUsername > Change Username, pick the admin account, type the new username and click Change username. You are signed out and log in again with the new name or your email. Posts, password and role stay the same. Tick "Block the old username" so every login that still tries admin is refused.
Only by creating a new user and moving the content over, or by editing the database directly. SmartUsername does it safely in place, checks the new name first and logs every change.
Administrators with the manage_options capability. On multisite, usernames are shared by the whole network, so the manage_network_users capability is required.
Yes. Choose the user in the list, click "Change username" under their name on the Users screen, or use the button next to the Username field on their profile.
Only if you allow it. Go to SmartUsername > Settings, tick "Allow it", choose the roles and set the number of days between changes. Those users then see Profile > Change Username.
Tick "Email the user their new username" and they get a short email from your site with the old and new username and the login link. If your site cannot send email, the screen tells you so.
Automated login attacks try usernames like admin first. Renaming that account means an attacker has to guess the username as well as the password. You can dismiss the warning.
Yes. Tick the confirmation box. You are signed out and log in again with the new username or your email address.
The same as WordPress core: up to 60 characters, using letters, numbers, spaces and . - _ @. Anything else is rejected with a message and nothing is changed.
Nothing. They are linked to the user ID, which does not change.
Only if you tick "Also update the author URL slug". The old author URL then redirects to the new one with a 301. If you leave it unticked, public URLs stay exactly as they were.
No. Edit the display name on the user's profile if needed.
Yes. WordPress accepts the email address on the login screen, and renaming does not change it.
Yes, for users who are not network super admins. Activate it on each site where you need it, or network activate it.
Your theme probably links to author pages, so author slugs are public. After "Fix author slugs" they are based on display names, not logins, which is why the plugin says Hidden. To keep author slugs out of public pages too, turn off author archives, if your site does not need author pages.
Visitors can no longer read the REST API users list, and ?author=1 lookups go to the home page. Logged-in users who can write posts still get the users list, so the block editor works as before. If another plugin needs the public users list, leave the switch off.
Nobody can log in with a name that no account uses, so every attempt with admin (when no admin account exists) or with an old name you kept is a bot. The plugin refuses it with the normal error and adds it to the "Login attacks caught" widget. If you later create a real account with that name, the trap stops applying to it.
The rename log, the settings, the trap names and counts, the stored old author slugs used for redirects and the small per-user markers for self-service and dismissed notices.
wp smartusername exposure command.wp smartusername rename, check and log.smartusername_notification_email and smartusername_risky_usernames.smartusername_username_changed action and smartusername_log_limit filter.