woocommerce_checkout_order_created not working after update

Hi, after updating to the latest versions, the woocommerce_checkout_order_created hook no longer works after placing an order.

I created a fresh wp install using twentytwentythree, added this code in the functions.php file and placed an order.

add_action('woocommerce_checkout_order_created', function ($order) {
     error_log('woocommerce_checkout_order_created triggered');

Nothing appeared in the debug.log file.

Thanks 🙂


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer