Wordpress multisite apply different options over each site from same plugin

I created a plugin for the bootstrap navbar. Then I created an option page for my plugin.In my options page, I have tw

I created a plugin for the bootstrap navbar. Then I created an option page for my plugin. In my options page, I have two types of navbar (Default navbar and Full-width navbar) you can only choose one of them. I want to use WordPress multisite and create two sites within it. Then in the first site show the Default navbar and, in the second site, show the full-width navbar. Can I can activate the same plugin in each site and use different options in each site? Or must I install WordPress two times then using the plugin in each WordPress installation folder?

I created a plugin for the bootstrap navbar. Then I created an option page for my plugin. In my options page, I have two types of navbar (Default navbar and Full-width navbar) you can only choose one of them. I want to use WordPress multisite and create two sites within it. Then in the first site show the Default navbar and, in the second site, show the full-width navbar. Can I can activate the same plugin in each site and use different options in each site? Or must I install WordPress two times then using the plugin in each WordPress installation folder?

Share Improve this question edited Jul 6, 2019 at 18:10 Matthew Brown aka Lord Matt 1,0683 gold badges13 silver badges34 bronze badges asked Jul 3, 2016 at 21:48 Shwan NamiqShwan Namiq 3351 gold badge3 silver badges12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 3

Put the plugin in the wp-content/mu-plugins directory. Each site in your network has its own _options table in the database so as long as you are using built-in WP functions for handling your plugin's options, each site will have its own distinct set of options.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745340553a4623306.html

相关推荐

  • Wordpress multisite apply different options over each site from same plugin

    I created a plugin for the bootstrap navbar. Then I created an option page for my plugin.In my options page, I have tw

    6小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信