插件变量位于数据库中的什么位置?

时间:2016-12-27 作者:Matt

我不是开发人员,而是设计师。但对我妻子来说,我将是一切(这是为了她的免费电子通信、erp和crm解决方案enter image description here)

所以,我正在连接dolibarr和woo com。我需要再次检查突出显示字段的输入。那个笨蛋需要存在于数据库的某个地方。。。但我找不到它。

我查看了活动插件,但这并没有满足我的需要。有人有什么建议吗?

1 个回复
SO网友:Pete

Where to store plugin settings in the database is technically up to the plugin developer. I\'ve seen some plugins that create custom database tables.

The standardized method, however, is to use the WordPress site options table (i.e. wp_options). That\'s what will be used if the developer uses the WordPress settings API.

You can view a list of all of the saved options if you visit http://yoursite.com/wp-admin/options.php.

Many plugin developers don\'t do a single setting per database field, though. Instead, they save an array of settings into the database field. That means that if you try to view them on the options.php page, you\'ll just see SERIALIZED DATA in the field. If you try to view the field in something like phpMyAdmin, you\'ll see a bunch of curly braces, colons, and numbers that are organizing the data. If you plan to modify them directly in the database, I\'d recommend you do some research in to PHP data serialization before doing so.