WordPress Developer Ukraine, Kyiv
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…
Migrate WooCommerce Orders to High-Performance Order Storage (HPOS)

Migrate WooCommerce Orders to High-Performance Order Storage (HPOS)

Migrate WooCommerce orders to High-Performance Order Storage (HPOS) High-Performance Order Storage moves WooCommerce orders out of wp_posts and wp_postmeta into their own tables: wc_orders, wc_order_addresses, wc_order_operational_data and wc_orders_meta. It appeared as an opt-in feature in WooCommerce 7.1, and with WooCommerce 8.2 (October 2023) it becomes the default for new stores. The reason is performance: in…