WordPress插件设置数据 [英] Wordpress plugin setting data
本文介绍了WordPress插件设置数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道插件设置数据保存在服务器中的什么位置?意味着,当我们更改任何插件设置时(例如,对于简单的验证码,它是设置为->使用编号,用户字母,验证码颜色等),然后将这些设置保存在文件或数据库中.
I want to know that where the plugins settings data saved in server? Means, when we change any plugin settings (e.g. For simple captcha, it is settings as-> use number, user alpha, captcha color etc), then in which file or database , these settings are saved.
推荐答案
插件的所有设置都将保存在数据库中.
All settings of the Plugin will be saved in the db.
您的插件可以选择要将设置存储到哪个表中.检查您的插件的源代码.
Your Plugin can choose which table they wanted to store the setting into. Check the source code of your Plugin.
- 如果您的插件使用
get_options()
,则它将存储在wp_options
表中 - 如果您的插件使用
get_post_meta()
,则它将存储在wp_postmeta
表中 - 如果您的插件使用
get_comment_meta()
,则它将存储在wp_commentmeta
表中
- If your Plugins uses
get_options()
, then it will stored in thewp_options
table - If your Plugins uses
get_post_meta()
, then it will be stored in thewp_postmeta
table - If your Plugins uses
get_comment_meta()
, then it will be stored in thewp_commentmeta
table
您的插件还可能创建了自己的表来存储设置.
Your Plugin might also have created its own table to store the settings.
这篇关于WordPress插件设置数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文