WordPress parsing series-Database options table

Source: Internet
Author: User
Tags autoload wordpress blog

Wp_optionsIs a data table used to store all global options in WordPress. Core andWp_postmetaAndWp_usermetaThese two tables are very similar, and this table is very easy to understand-Wp_optionsAll WordPress information is stored.Wp_postmetaStore log information andWp_usermetaThe usage of storing user information is the same. However, you may notice that it has some additional fields.

There isBlog_ Id field, but it is not used in a separately installed Wordpress blog. It is only used in WordPress Mu. What about most of the conventional WordPress and Wordpress Mu?Source codeIt is similar to the data structure. So use WordPress muWp_optionsIn this tableBlog_idThis field is used to differentiate the option settings of different blogs under the same WordPress Mu.

AutoloadThis field is used to control whether the options are always imported and cached by WordPress or plug-in, or whether the options are imported only when required. I have observed that many options are automatically imported.

 

++ ++

 

 

WordPressThe wp_options table in the database records the basic information set by the user. In wordpress2.7, the content recorded in this table is roughly set on the background management page-> general content, the table has five fields. The functions of each field are described as follows:

The ID of the option_id Option Record.
Blog_id blog ID. WordPress supports multiple blogs in one system. If there are multiple users, this field will have a corresponding number; otherwise, it will be 0.
Option_name option name
Option_value option value
Whether autoload is automatically read each time

 

 

 

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.