BACK TO DIRECTORY

WP Edit Username

by Sajjad Hossain Sagor

5.0
(5 ratings)

This plugin adds feature to edit/change user username.

Features:

  • Edit Username: Allows editing of usernames.
  • Only users with the edit_other_users() capability can change usernames.
  • If the “Send Email” option is enabled, the user will receive a notification email when their username is changed.
  • You can customize the email subject and body text in the admin dashboard or via filter hooks.
  • Modify the email subject using the filter: wpeu_email_subject.
  • Modify the email headers using the filter: wpeu_email_headers.
  • Adjust the email body content using the filter wpeu_email_body. (Note: $new_username and $old_username are automatically prepended to the email content).

Hooks Usage:

<?php

add_filter( 'wp_username_changed_email_subject', 'change_email_subject' );

function change_email_subject( $subject )
{
    $subject = 'Your customized subject';

    return $subject;
}

add_filter( 'wp_username_changed_email_body', 'change_email_body' );

function change_email_body( $old_username, $new_username )
{
    $email_body = "Your custom email text body.";

    return $email_body;
}

?>

Screenshots

Settings panel for WP Edit Username plugin.

Settings panel for WP Edit Username plugin.

Username Edit Button.

Username Edit Button.

New Username Input Field.

New Username Input Field.

After Username Changed Message.

After Username Changed Message.

Plugin Details

Active Installs
2K+
Total Downloads
28,767
Version
2.0.6
Requires WP
5.6
Requires PHP
8.0
Tested Up To
7.0.4
Added
2018-04-26
Last Updated
2026-05-29 8:36pm GMT

Ratings

5
5
4
0
3
0
2
0
1
0