PluginProbe
Change Username / trunk
Change Username vtrunk
1.0.3 trunk 1.0 1.0.1 1.0.2
change-username / change-username.php

change-username.php in Change Username trunk, at change-username.php

48 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 Plugin Name: Change Username
5 Description: Allows you to change the username of your WordPress users.
6 Version: 1.0.3
7 Author: ibericode
8 Author URI: https://www.ibericode.com/
9 License: GPL-3.0-or-later
10 License URI: http://www.gnu.org/licenses/gpl-3.0.html
11 Requires at least: 6.0
12 Requires PHP: 7.4
13
14 Change Username - a WordPress plugin to change usernames
15 Copyright (C) 2016 Danny van Kooten
16
17 This program is free software: you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by
19 the Free Software Foundation, either version 3 of the License, or
20 (at your option) any later version.
21
22 This program is distributed in the hope that it will be useful,
23 but WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 GNU General Public License for more details.
26
27 You should have received a copy of the GNU General Public License
28 along with this program. If not, see <http://www.gnu.org/licenses/>.
29 */
30
31 define('CHANGE_USERNAME_VERSION', '1.0.3');
32 define('CHANGE_USERNAME_FILE', __FILE__);
33
34 /** @ignore */
35 function _dvk_change_username_bootstrap()
36 {
37 // do nothing for public requests
38 if (! is_admin()) {
39 return;
40 }
41
42 require __DIR__ . '/src/functions.php';
43 add_action('admin_enqueue_scripts', 'change_username\\enqueue_assets');
44 add_action('wp_ajax_change_username', 'change_username\\ajax_handler');
45 }
46
47 add_action('plugins_loaded', '_dvk_change_username_bootstrap');
48