How to Work with WooCommerce Webhooks Programmatically
In this tutorial, I am going to talk about the webhooks functionality, which you can find in WooCommerce settings, Settings > Advanced > Webhooks. But I am not going to show you how to manage webhooks via the WooCommerce admin; only code examples will be below.
For example, let’s say you created a couple of webhooks for “Order Created” and “Order Updated” topics, and your goal now is to manage orders programmatically and send appropriate webhooks. The thing here is that these webhooks are not going to be triggered automatically on woocommerce_update_order or woocommerce_new_order action hooks.
So, what can we do in this case?
I also had this question when working with my Multisite Order Sync for WooCommerce plugin, because the customer wanted the webhooks functionality. But, as we already know, they will not be triggered by default when orders are created programmatically.
Basically, there are two ways to trigger a specific webhook, and we need to know some information about it:
- The webhook ID,
- The topic (in our case,
order.createdandorder.updated), - The order ID.
Now, let’s talk about it step by step.
Configuring Shared Inventory between WooCommerce and Google Sheets
In this step-by-step guide, you will learn how to configure shared inventory for your products between your WooCommerce store and a Google spreadsheet.
Though this tutorial is more about setting things up with the help of the plugin, specifically with the Stock Sync with Sheets for WooCommerce plugin (it is the easiest solution), in every step you will also find the instructions on how to do things programmatically, with custom code.
How to Sync Inventory and Prices Between WooCommerce Stores
Since I created the Inventory Sync for WooCommerce plugin, I keep receiving requests from customers who’d like to also sync product prices along with the stock information.
Is it possible to sync prices together with product stock? Sure, it is.
Below, I will show you two methods of how we can achieve that – with the help of the mentioned plugin or custom coding.
Now, let’s dive into it.
Add Custom Order Actions in WooCommerce
Recently I’ve been working on adding some order actions that allow users to manually sync orders to specific stores, as a part of my Order Sync for WooCommerce plugin.
Here is an example:

I was quite surprised that there were no good explanations over there. So, as usual, let me share with you my experience of how I did it.
How to Create Variable Products with Conditional Logic
In this step-by-step guide, you’ll learn how to create WooCommerce variable products with conditional logic.
This feature is not supported out of the box, and most of the solutions you can find out there will force you to work with another entity, so-called “product add-ons” or “product options”, which are, in simple words, just custom fields for order items in most cases. I don’t say it is a bad thing, but sometimes they are unnecessarily overcomplicating things.
The good news is that I developed a solution for you! As usual, it was first requested by a client of mine, but now it has become a fully functional Conditional Attributes for WooCommerce plugin. So, below I will share with you two ways of creating conditional logic for product variations – using my plugin, of course, and a programmatic approach.
This is also an example of a variable product with conditional variations, which we will create:

How to Sync Stock Across Multiple Stores in WooCommerce
In this guide, I will show you how to implement a multi-store WooCommerce stock synchronisation (for products with the same SKU, slug, or “GTIN, UPC, EAN, or ISBN” field).
We will use two different approaches to achieve that:
- Using the Inventory Sync for WooCommerce plugin,
- Programmatically, without using any plugins.
Let’s get started.
But before we start – one more thing. If your goal is to sync stock for products with the same SKU within the same WooCommerce store, you probably need a different solution; in that case, the Duplicate SKU Stock Sync plugin is what you would need.
How to Hide a Shipping Method for Product Category
In this guide, you will learn two ways of how you can enable or disable WooCommerce shipping methods depending on products from a specific category in the customer’s cart or an order.
First, I will show you how to easily add conditions with a plugin, and then we will also take a look at a programmatic approach.