I am using WordPress Multisite and using this plugin for Q&A but after activating this plugin all the home pages of the sub sites stop working and it is showing the Q&A search box and question on the main and sub pages on all the sub sites. So i think that i have to disable it for all the sub sites.
you can send me username & password of your site (via private answer) for further checking.
You can use the filter site_option_*.
E.g. the following will disable akismet on blog with id 2.
add_filter('site_option_active_sitewide_plugins', 'modify_sitewide_plugins');
function modify_sitewide_plugins($value) {
global $current_blog;
if( $current_blog->blog_id == 2 ) {
unset($value['akismet/akismet.php']);
}
return $value;
}
Or you can use a plugin, please find the plugin here: https://wordpress.org/plugins/multisite-plugin-manager/screenshots/
The reply for this issue is not really relevant to the question.
Though it may be relevant to the users issue as it only blocks a specific site running Akismet which it must have an issue with this sounds like an issue with the product in the first place.
As multi sites have many sites and usually continue to have many added this will not work.
Have you a way to activate this on only one site?
To activate this on only one site, you just impossible use the code in the answer before to disable the plugin in the each site.
Hi Dominic, I have 50 to 100 site dynamicly created every week so it’s not practical to do this in the way you have recommended. That was what I said before. There needs to be a snippet to say only this site and not the rest or make the software work correctly on multi sites
Also the answer you give refers to disabling Akismet …. can you explain why?
The code in the previous answer is example to disable akismet plugin in the site. Right now, to disable DW Q&A plugin on sub site, you can find here for the document guide on how to disable plugin:
http://premium.wpmudev.org/manuals/wpmu-manual-2/activating-and-deactivating-plugins-on-a-per-site-basis/
Hi Dominic,
My apologies, in an earlier version of the software I could not get get the plugin to work on a stand alone site in multisites, I have not tried it for sometime, but it appears to work now.
Please login or Register to submit your answer