This plugin adds feature to edit/change user username.
Features:
- Edit UserName
- Only Who can edit_other_users() capability can edit username.
- On change username a email would send to the user email about username change if send email is checked!
- You can modify email text & subject in admin dashboard & via filter hook
- Email Subject Change via filter
wp_username_changed_email_subject
.
- Email Body Text Change via filter ($new_username & $old_username are always prepended to the email text)
wp_username_changed_email_body
.
Hooks Usage:
`<?php
add_filter( "wp_username_changed_email_subject", "your_function", 10, 3 );
your_function( $subject, $old_username, $new_username )
{
$subject = 'Your customized subject';
return $subject;
}
add_filter( "wp_username_changed_email_body", "your_function", 10, 3 );
function your_function( $email_body, $old_username, $new_username )
{
$email_body = "Your custom email text body.";
return $email_body;
}
?>`
Interested in contributing to WP Edit Username?
Contact me sagorh672(at)
gmail.com
To add a WordPress Plugin using the built-in plugin installer:
Go to Plugins > Add New.
- Type in the name "WP Edit Username" in Search Plugins box
- Find the "WP Edit Username" Plugin to install.
- Click Install Now to begin the plugin installation.
- The resulting installation screen will list the installation as successful or note any problems during the install.
If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions.
To add a WordPress Plugin from github repo / plugin zip file :
- Go to wordpress plugin page
- Click Add New & Upload Plugin
- Drag / Click upload the plugin zip file
- The resulting installation screen will list the installation as successful or note any problems during the install.
If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions.