The password will be displayed in clear text after the WordPress user registers, and the email sending will be canceled

This article is available in many places. I reprinted it because it may be used later, so I changed it. I don't know where the first source is WP Forum So the reprint address is, of course WP Forum Yes

Many friends can't receive the password sent by WordPress registration after registering their accounts, so they can't complete the registration process of WordPress users. The following information was found on the Internet and some changes were made to the registration process: the password was displayed in clear text after the user registered, and it was cancelled to send the password to the user by email. The following is the modification I made to the user registration of WordPress version 2.8.4, which is recorded here. I hope it will be useful to you.
First, open the user registration program "wp login. php" in the root directory where the program is installed in WordPress.
Step 1:
About 269 lines (you can search“ wp_new_user_notification "), with the following code:

wp_new_user_notification($user_id, $user_pass);

Comment out this line of code and change it to the following code:

// wp_new_user_notification($user_id, $user_pass);

setcookie(”u”, $user_login); s

etcookie(”user_pass”, $user_pass);

Step 2:
About 496 lines (you can search for "$errors ->add ('registered ',"). The code is as follows:

elseif ( isset($_GET['checkemail']) &&‘registered’ == $_GET['checkemail'] )  $errors->add(’registered’,__(’Registration complete. Please check your e-mail.’), ‘message’);

Modify it to the following code:

Elseif (isset ($_GET ['checkemail '])&&'registered'==$_GET ['checkemail ']) $errors ->add ('registered', __ ('^ __ ^ registered successfully;

// $errors->add(’registered’, __(’Registration complete. Please check your e-mail.’), ‘message’);

Save the file in utf-8 format, and the WordPress user registration password will be displayed in clear text. The function of canceling email sending will be completed.

The effect is shown in the figure below:

Article from: WP forum

Appreciation

see wordpress wp email register Related articles for

Please specify that the original article of this website is reproduced from To be kicked , Link: https://www.itlu.net/articles/1179.html

Comment list (4)

  1. For self use, registration is not open.

  2. reply gray13 gray13

    How to cancel the mail sending.... cry for help

  3. @gray13
    Do you want to change it into the text? Or just cancel??

  4. One top blogger! Thanks for sharing.

Add a comment

Hello! #Please fill in the information# determine

Reward the blogger for drinking water
 LOADING