Optimize WordPress's Registration Experience

Source: Internet
Author: User
Tags root directory


OK, let's go!

To modify the method:

1. Open the wp-login.php in the WordPress root directory

Search $errors->add (' registered ', __ (' registration complete. Please check your e-mail. '), ' message ';

After you find this line of code, replace it with:

$errors->add (' Registered ', __ (' Registered success! <br/> your login password is: <font color= "Red" > "$_cookie[" User_pass "." </font><br/> password can be reset after landing, be sure to properly take care of your password <br/> if you forget the password can be completed from the registration of the mailbox to find '), ' message ';

2. Open the user.php search update_user_option under the Wp-includes directory ($user _id, ' Default_password_nag ', true, true);

After you find this line of code, insert the code below this line of code:

Setcookie ("User_pass", $user _pass);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.