Multisite

How to check if WooCommerce is activated on WP multisite

Typically the plugins I write are not standalone but require other plugins such as WooCommerce to be enabled to work correctly. So before I run my plugin, I need to check if the plugin I depend on is activated. In a multisite environment this gets a bit more complicated. If my own plugin is networkwide activated, then I require for the plugin I depend on to also be network activated. In theory it is possible for a plugin to be …

How to check if WooCommerce is activated on WP multisite Read Article »

How to write a multisite compatible WordPress plugin

In this tutorial I take you through the steps to write a multisite compatible WordPress plugin. But before we begin, please take note that writing plugins for large networks must be done with great care to resources. The plugin I’ve written is intended for a small network which can cope with additional tables for each site, but if you have a large network and/or limited hosting resources, this could quickly crash the network. If your plugin is intended for general …

How to write a multisite compatible WordPress plugin Read Article »