admin管理员组文章数量:1426512
Good Day
When you are inside the wordpress ctrl panel, and you edit/create posts, do theme changes etc, where does Wordpress store all that content? In which files?
Thank you
Good Day
When you are inside the wordpress ctrl panel, and you edit/create posts, do theme changes etc, where does Wordpress store all that content? In which files?
Thank you
Share Improve this question asked Feb 21, 2013 at 4:29 DextrousDaveDextrousDave 2691 gold badge2 silver badges15 bronze badges 1- Related: wordpress.stackexchange/q/25472/76260 – Highly Irregular Commented Oct 5, 2017 at 10:16
3 Answers
Reset to default 8That information is stored in the MySQL database, not in files like you may be thinking of. They aren't stored in .php
or .html
files.
If you want to "see" how and where that data is stored the easiest way is to browse the database using a tool like PhpMyAdmin.
NOTE: Technically, there are files associated with the MySQL database but they aren't easy to get to and you can't read them except through the interface provided by the MySQL engine.
WordPress does not save anything in files. All settings are stored in your database, normally the options
table. Posts are stored in posts
and postmeta
.
You can have a look at the Database Description to get a better understanding.
If your theme is called my-theme the configuration is stored as serialized PHP object in a option name called theme_mods_my-theme in the wp_options
table in your Wordpress database.
Use any Database editor tool to execute the query:
SELECT * FROM `wp_options` WHERE `option_name` LIKE 'theme_mods_%'
with will return all the customizations for every theme you have in your wordpress install.
Export the query results to a SQL plain text file. Then, when you update your theme, you import your SQL file again and voilà, you have your customizatons again.
本文标签: postsWhere does Wordpress store the users customization in the theme
版权声明:本文标题:posts - Where does Wordpress store the users customization in the theme 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745475393a2659940.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论