WordPress

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 »

File Deletions in WP All Import

Last updated 1 April 2020. The WordPress plugin “WP All Import” allows site admins to bulk upload data in CSV (or other) formats. Its Pro version is compatible with WooCommerce and ACF, making it a popular choice for Woo shop owners to bulk import and update product data. WP All Import comes with a multitude of settings which give great flexibility, but with great flexibility comes great complexity. And it’s not always clearly labelled what consequences these settings have. This …

File Deletions in WP All Import Read Article »

All the ways to write paths in WordPress & WooCommerce

I don’t use hardcoded URLS and paths in my code as most of my sites are for clients which have to be moved from the development server to the live server. In the database, it’s easy enough to modify the URLs through search & replace; but within files, it’s a recipe for disaster using a full URL or server path.  So as a cheatsheet for myself, I’ve documented all the ways we can write WP & Woo URLs and paths …

All the ways to write paths in WordPress & WooCommerce Read Article »