WordPress Developer Ukraine, Kyiv
Build Custom WooCommerce Email Notifications from Scratch

Build Custom WooCommerce Email Notifications from Scratch

Build custom WooCommerce email notifications WooCommerce emails are built on the abstract WC_Email class. It renders the templates inside the standard WooCommerce header and footer, adds the settings page (enable, subject, heading, additional content, email type) under WooCommerce → Settings → Emails, replaces placeholders like {order_number}, and sends through wp_mail(). Every built-in email (new order,…
Use the WooCommerce REST API for Headless and Decoupled Commerce

Use the WooCommerce REST API for Headless and Decoupled Commerce

The WooCommerce REST API for a headless storefront In a headless shop, WordPress and WooCommerce keep the products, orders and payments, and a separate frontend (Next.js, Nuxt, Astro) renders the pages. WooCommerce has two APIs for this, and the most common mistake is using the wrong one: the authenticated REST API wc/v3 is for servers,…
Hook into WooCommerce Order Status Transitions and Lifecycle Events

Hook into WooCommerce Order Status Transitions and Lifecycle Events

Hook into WooCommerce order status transitions A WooCommerce order moves through statuses: pending, processing, on-hold, completed, cancelled, refunded, failed, plus custom ones from extensions. Every status change fires a predictable set of hooks, so fulfillment, ERP sync, notifications and analytics can react to exactly the transition they need, without save_post and without polling.
Process Background Jobs in WordPress with Action Scheduler

Process Background Jobs in WordPress with Action Scheduler

Background jobs in WordPress with Action Scheduler WP-Cron is fine for “run this every hour”, but it is a poor queue: events are stored in one option, there is no history, and thousands of pending events slow every request. Action Scheduler, the library WooCommerce uses for its own background work, stores each job as a…
Create a WooCommerce Payment Gateway Plugin from Scratch

Create a WooCommerce Payment Gateway Plugin from Scratch

A WooCommerce payment gateway plugin from scratch When a regional payment provider has no WooCommerce plugin, you write one. The gateway class extends WC_Payment_Gateway: settings for the API keys and a test mode, process_payment() to start the payment, and a webhook that confirms it. The common case today is a redirect gateway: the customer pays…