Add a custom column to WooCommerce admin orders page with HPOS enabled [duplicate]
This question already has an answer here: Add customer order count to WooCommerce admin orders list (HPOS) (1 answer) Closed 3 months ago. I want to have a custom column in my WooCommerce admin orders page. it’s about WHO CREATED AN ORDER ( actually I want the author name ). With HPOS in WooCommerce I […]
Woocomerce My account > Orders, cannot filter orders from post metadata
I tried using woocommerce_my_account_my_orders_query
filter hook to filter orders from post metadata in My account > Orders.
Add order total weight to WooCommerce admin orders list (HPOS compatible)
I used to use a plugin to add the total order weight to each order and display it on the orders page on the back end. However, HPOS broke this and I have been trying to write the code to implement it again. I have Frankensteined a few snippets I have found, as my PHP skills are very limited, and this is as far as I have gotten, I just can’t seem to get it to populate the values.
Avoid woocommerce_thankyou hook to be trigerred multiple times or on old orders
I’m using the woocommerce_thankyou hook in my WooCommerce site to send order data to an external URL via a POST request whenever a new order is created. However, I’ve noticed that this hook is sometimes triggering on very old orders, causing unexpected POST requests. Here’s the code I’m using:
Avoid woocommerce_thankyou hook to be trigerred multiple times or on old orders
I’m using the woocommerce_thankyou hook in my WooCommerce site to send order data to an external URL via a POST request whenever a new order is created. However, I’ve noticed that this hook is sometimes triggering on very old orders, causing unexpected POST requests. Here’s the code I’m using:
How to avoid woocommerce_thankyou hook to be trigerred multiple times?
I’m using the woocommerce_thankyou hook in my WooCommerce site to send order data to an external URL via a POST request whenever a new order is created. However, I’ve noticed that this hook is sometimes triggering on very old orders, causing unexpected POST requests. Here’s the code I’m using:
How to avoid woocommerce_thankyou Hook Triggering on Old Orders?
I’m using the woocommerce_thankyou hook in my WooCommerce site to send order data to an external URL via a POST request whenever a new order is created. However, I’ve noticed that this hook is sometimes triggering on very old orders, causing unexpected POST requests. Here’s the code I’m using: