-
Notifications
You must be signed in to change notification settings - Fork 1
/
readme.txt
85 lines (67 loc) · 3.02 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
=== WP Edit Username ===
Contributors: sajjad67
Tags: user,user-profile,profile-edit,edit,ajax,update,change-username,username
Requires at least: 5.6
Tested up to: 6.0
Stable tag: trunk
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Easily Edit User Profile Username clicking a button.
== Description ==
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" );
your_function($subject){
$subject = 'Your customized subject';
return $subject;
}
add_filter( "wp_username_changed_email_body", "your_function" );
function your_function($$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
== Installation ==
To add a WordPress Plugin using the built-in plugin installer:
Go to Plugins > Add New.
1. Type in the name "WP Edit Username" in Search Plugins box
2. Find the "WP Edit Username" Plugin to install.
3. Click Install Now to begin the plugin installation.
4. 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 :
1. Go to wordpress plugin page
2. Click Add New & Upload Plugin
3. Drag / Click upload the plugin zip file
4. 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.
== Frequently Asked Questions ==
= How to use this plugin? =
Just after installing WP Edit Username plugin, Go to user profile and edit user username by clicking Edit button.
Update inputs according to your requirement and you are good to go.
== Screenshots ==
1. Settings panel for WP Edit Username Plugin.
2. Username Edit Button.
3. New Username Input Field.
4. After Username Changed Message.
== Changelog ==
= 1.0.3 =
- Checked for latest wp version & updated coding styles... major changes nothing
= 1.0.2 =
- Checked for latest wp version & updated coding styles... major changes nothing
= 1.0.1 =
- Checked for latest wp version & updated coding styles... major changes nothing
= 1.0.0 =
- Initial release.
== Upgrade Notice ==
Always try to keep your plugin update so that you can get the improved and additional features added to this plugin up to date.