WordPress theme development: WordPress tutorial (5) General settings, and automatic registration through plug-ins. WordPress uses

One year ago (2023-11-25) Chief Editor
6 minutes
three hundred and fifty-six
zero

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!

This article is written by: Chief Editor Published on Software Development of Little Turkey , please indicate the source for reprinting: //hongchengtech.cn/blog/590.html
Kuke_WP editor
author

Related recommendations

1 year ago (2024-02-20)

What technologies have been applied and developed in the field of new media, and the application of new technologies in media

In the field of new media, many technologies have been applied and developed. These include: cloud computing: cloud computing technology enables new media companies to develop and deploy applications more quickly, and can dynamically adjust resources according to needs. Big data: New media companies can use big data technology to analyze massive user data, understand user preferences, behavior habits and other information
nine hundred and seventy-one
one
1 year ago (2024-02-20)

WMS warehouse management system, promoting the transformation of warehousing from extensive to fine management, WMS warehouse management

Warehousing is extremely important for the manufacturing industry and is an important guarantee for the survival and development of manufacturing enterprises. However, with the expansion of manufacturing enterprises' business, the traditional warehouse management has been unable to respond to business changes quickly. The extensive management mode not only makes the warehouse operation not smooth, but also increases the storage cost. Therefore, it is necessary for manufacturing enterprises to deploy a WMS warehouse management system
eight hundred and forty-eight
one
1 year ago (2024-02-20)

How to select MES system? Main contents of MES production management

Original title: How to select MES system? The main content of MES production management Production and manufacturing activities are the core activities of manufacturing enterprises. As the entity unit of manufacturing activities, planning objectives and the realization of enterprise value, workshop management is the focus of enterprise management. With the rapid development of manufacturing industry, MES is the focus and current hot spot of manufacturing enterprise information automation system
nine hundred and sixty-four
zero
1 year ago (2024-02-20)

The WeChat management system can manage the information content of WeChat more effectively. Let's manage the data of WeChat here

Original title: WeChat management system manages the information content of WeChat more effectively. Many enterprises will assign work to WeChat, because no one wants their personal WeChat to mix work and other related knowledge, but someone will always use the company's loopholes to do something harmful to the company's interests. Don't think such things are rare. I learned about a media financing company in Shenzhen. They have 3
seven hundred and seventy-five
zero
1 year ago (2024-02-19)

Student electronic file management system, three-dimensional communication space of "home", "school" and "community", and school electronic files

In the era of big data, in the process of recording the growth of students, the school reexamines the management of student files, moves with the times, and promotes the reform of student growth files with new thinking. "Electronic files of primary and secondary school students' growth records" have been gradually introduced into educational management, and show vigorous vitality. Student file management system is an indispensable part of the school, its content for the school
five hundred and sixty-nine
zero
1 year ago (2024-02-19)

Ruizhe Information: Select Sitecore? Or... just six steps to choose a content management system, Ruizhe Information Technology Service Co., Ltd

The content management system (CMS) is an important part of the success of website construction. At present, the content management system on the network is relatively complex. It is not easy to find a good content management system that is very suitable for the current digital marketing environment. Before we compare the functionality, operation, scalability, security and other specific performance of the major CMS systems, we need to achieve
three hundred and forty-three
zero

comment

0 people have participated in the review

Scan code to add WeChat

contact us

WeChat: Kuzhuti
Online consultation: