How we get the success messages
You can declare $success variable and use it to display success message as following. Declare $success variable and assign success message to it if user is registered successfully as following : $success=””; if ( ‘POST’ == $_SERVER[‘REQUEST_METHOD’] && !empty( $_POST[‘action’] ) && $_POST[‘action’] == ‘adduser’ ) { $user_pass = wp_generate_password(); $userdata = array( ‘user_login’ => … Read more