In the last tutorial, we introduced the operation of WordPress plug-in management. This time, we will introduce the settings. This tutorial mainly introduces the general options in settings.
1、 General overview, clear focus
After entering the WordPress management background, click the "Settings" menu on the left, and the first page is the "General" option. When WordPress's default official website theme "2022" is enabled, there are 12 general options.
Most of the setting options are in the context. Among them, it should be noted that the display of "site title" and "site subtitle" and the display position are mainly determined by the enabled theme; The "WordPress site address" and "site address" are generally left as default, but they need to be modified when the website changes the domain name; The "administrator e-mail address" should be filled in the real and available e-mail address; "Membership" and "New User Default Role" are the key points of this article, which will be introduced in detail next; "Site language" refers to the language of the management background operation interface. Different users can set their own background language independently after logging in, without affecting each other; The "time zone" will be automatically set according to the language selected during installation. If the target users of the website are mainly Chinese, the default is "Shanghai"; The "date format" and "time format" can be used to draw pictures of the camera case, and the essence is to adjust the display position of the corresponding letters; Keep the default "Monday" for "Week starts on".
Next, we will focus on the setting of user registration, and finally realize automatic registration and password retrieval.
2、 Set user registration related options
First of all, the "Anyone can register" option of "Membership". If it is not checked, the automatic registration function of the site will be turned off. If it is turned off, there is no need to configure the following items. Of course, this article mainly introduces the relevant settings after enabling automatic registration. Therefore, we chose to tick the "Anyone can register" option. Secondly, the "Default Role for New Users" is mainly used to control the permissions of registered users. It is generally set to "Subscriber". If you need to give registered users higher permissions, you can adjust them accordingly, provided that you are clear about the permissions of relevant roles.
3、 Enable SMTP service of mailbox
If the automatic user registration function is enabled, the server needs to send a verification email to the user, which requires the server to support the SMTP service. Due to different server environments, we adopt a common third-party SMTP service mode, and take the commonly used QQ mailbox as an example. Log in to your QQ mailbox, click the "Settings" - "Account" option, find the "POP3/SMTP Service" on the page and click the "Open" option. After completing the verification as prompted, a prompt box with the authorization code will pop up, and the authorization code will be saved for use.
4、 Installing OpenSSL extensions for PHP
In order to support the TLS of SMTP, we also need to enable the OpenSSL extension of PHP. Select the "Website" menu of the small skin panel (PhpStudy), find the domain name where the WordPress site is located, click "Management" - "php extension", and check "openssl".
5、 Install the WP Mail SMTP plug-in
Back to the WordPress management background, click "Plug in" - "Install Plug in" in the menu, and enter "WP Mail SMTP" in the search box. Find the plug-in named "WP Mail SMTP by WPForms" in the search results, and click "Install Now".
6、 WP Mail SMTP Plug in Settings
Do not click Enable after the installation is successful. The Chinese language pack will be downloaded automatically during the installation of WP Mail SMTP, but the localization is not complete enough, affecting the visual beauty. Therefore, we find the "wp content languages plugins" directory and delete the "wp mail smtp zh_CN. mo" and "wp mail smtp zh_CN. po" files. Then, click "Enable" to jump to the installation wizard page, and click "Let Get Started"; Select "Other SMTP" on the jump page, and click "Save and Continue".
Then, on the "Configure Mailer Settings" page, you need to fill in the following information (if the "SMTP Host" option is not clear in the picture, you can search the search engine for "QQ mailbox SMTP server address"), and then click "Save and Continue".
On the next page, only check "Improved Email Delivery" and "Email Error Tracking". Then, click "Skip this Step" in the subsequent pages.
7、 Test the automatic registration function
Now, we can test the function of automatic user registration. In the WordPress management background, hover the mouse over the avatar in the upper right corner, and click "Logout" in the drop-down menu to exit the administrator account. On the login page, click "Register", enter the user name and email address as prompted, and then operate step by step. Check the email address to receive an email with a password set. Click the link to log in as prompted.
8、 Test the password recovery function
After exiting the account and returning to the login page, click "Forgot your password?", enter your user name or email address on the jump page, click "Get a new password", check the email address, and you will receive an email to reset your password. After clicking the link settings, you can reset your password as prompted.
The above is an introduction to the general settings of WordPress, and automatic user registration and password retrieval are realized through the WP Mail SMTP plug-in. In the next tutorial, we will introduce the reading settings of WordPress. Don't miss it!
Welcome to join us!