有多个插件使用redux-framework作为选项页面

时间:2015-06-19 05:40:34

标签: wordpress-plugin wordpress-theming wordpress redux-framework

我可以让多个插件使用Redux框架的单个实例来提供多个选项页面吗?

我正在编写2个插件,为此我将使用Redux框架提供选项,我可以使用一个Redux框架并使我的插件创建2个单独的选项表单吗?

2 个答案:

答案 0 :(得分:0)

使用带有Suggest + Embed选项的Redux builder,它基本上将整个Redux插件嵌入到它生成的插件文件中,并且不会与其他插件的redux框架冲突。

此外,您只需要维护自己的全局变量,并且可以使用多个插件进行无冲突设置,使用框架创建多个表单。

答案 1 :(得分:0)

Just use different opt_names and you can have as many panels running as you want.

For plugins, be sure to wait until Plugins Loaded before you include the Redux framework.php file, and then instantiate your options. :)