WordPressに関する情報や技術紹介です

About where to save the settings plug-in

Where to save the settings of the plug-in is like a table called wp_options good.

That it was anxious that, in the other plug-ins that what has been where to store the set value.
Not appear to mean that, in the folder that stores data in a simple text very much.
Create a new table in the database No way! ? I thought, but it seems different.

If you examine some of the plug-in there, I want to have stored in a table called wp_options WordPress database has. This table I have housed a variety of information.

I tried to examine the "option_value" field and "option_name" field.

siteurl
URL of homepage
blogname
The name of the blog
blogdescription
Version of WordPress

(Which was kinda burdensome too much) · · · various other

I mean that, and let's try to feel the same way as any other plug-in plug-in to limit the category that try to create here. However, I need to become a fully configured screen Sonaruto · · ·. Is the destination for the time being I ·.

Add items to a new setting in the "add_option" By the way,
Read in "get_option",
I want that can be updated by "update_option".

Tag
, , ,
Trackback URL

Leave a Reply

Your email address will not be published. * Fields are marked required

*

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

ページTOPに戻る