WordPress action hook
woocommerce_thankyou
Defined by WooCommerce and fired by 54 plugins in total, running on 7.3M+ sites between them.
How to use woocommerce_thankyou
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'woocommerce_thankyou', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
54 plugins that fire woocommerce_thankyou
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/checkout/thankyou.php:97 -
CartFlows200,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )woocommerce/template/checkout/thankyou.php:117 -
FunnelKit30,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )modules/thankyou-pages/class-wffn-thank-you-wc-pages.php:915 -
NextMove Lite10,000+ installs
do_action( 'woocommerce_thankyou', XLWCTY_Compatibility::get_order_id( $order_data ) )components/additional-information/views/view.php:15 -
SysBasics Customize My Account for WooCommerce7,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/myaccount/thankyou/01.php:588 -
Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )includes/wc-templates/checkout/thankyou.php:95 -
WPFunnels5,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )woocommerce/templates/checkout/thankyou.php:98 -
WowStore4,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )blocks/woo/thank_you/address/Template.php:59 -
Thanko Thank You Page Customizer for WooCommerce3,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/thankyou.php:966 -
Custom Thank You Page for WooCommerce2,000+ installs
do_action( 'woocommerce_thankyou', $order_id )includes/class-wccty-frontend.php:399 -
BjornTech Swish for WooCommerce2,000+ installs
do_action( 'woocommerce_thankyou', $order_id )views/swish-thankyou.php:21 -
Banner Management For WooCommerce2,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )public/woocommerce/checkout/thankyou.php:185 -
Custom Thank You Page Customize For WooCommerce by Binary Carpenter2,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )Initiator.php:293 -
Frisbii Pay1,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/checkout/thankyou.php:111 -
Openpay SPEI Plugin1,000+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/woocommerce/checkout/thankyou.php:80 -
BORICA Payments by BORICA AD600+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )includes/functions.php:4126 -
Noah Shop Builder for WooCommerce300+ installs
do_action( 'woocommerce_thankyou', $order_id )includes/Templates/Types/OrderReceived.php:112 -
Cargo Shipping Location for WooCommerce200+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )woocommerce/templates/checkout/thankyou.php:90 -
KiriminAja Official200+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/woocommerce/checkout/thankyou.php:82 -
Wallet Up200+ installs
do_action( 'woocommerce_thankyou', $id )src/WooCommerce/ConfirmationPage.php:91 -
Swedbank Pay Payment Menu200+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/checkout/thankyou.php:100 -
Shopready100+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )src/extension/elewidgets/widgets/thankyou/template-parts/quick_review/woo-ready-thankyou-order-preset-one.php:58 -
Planet Pay payments100+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/checkout/thankyou.php:87 -
Custom Thank You Page for WooCommerce40+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/thankyou.php:28 -
Mobile App for WooCommerce: ShopApper Mobile App Builder Service for WooCommerce30+ installs
do_action( 'woocommerce_thankyou', $last_order->get_id() )Controllers/CheckoutController.php:167 -
سرویس خرید پستی ماها10+ installs
do_action( 'woocommerce_thankyou', $order->id )checkout/thankyou.php:56 -
Krepling Pay for WooCommerce10+ installs
do_action( 'woocommerce_thankyou', $kpOrxOrder->get_id() )inc/order-received/templates/order-received.php:207 -
Hygglig Checkout10+ installs
do_action( 'woocommerce_thankyou', $order_id )classes/views/html-thank-you.php:67 -
Custom Thank you for Woo10+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )checkout/thankyou.php:78 -
TrafficFlow OnePageCheckout for WooCommerce10+ installs
do_action( 'woocommerce_thankyou', $opcw_order->get_id() )templates/page-thankyou.php:199 -
WowRestro10+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )includes/views/order-received.php:29 -
Split Order on checkout pro for Woocommerce10+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )inc/checkout/thankyou.php:87 -
Pravel Rent & Sell Addon for WooCommerce10+ installs
do_action( 'woocommerce_thankyou', $order->get_id() )woocommerce/checkout/thankyou.php:147 -
Woo MercadoPago Chile10+ installs
do_action( 'woocommerce_thankyou', $order->id )woocommerce/checkout/thankyou.php:93 -
VarinkioFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/woocommerce/checkout/thankyou.php:256 -
Split order by weight for WooCommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )inc/checkout/thankyou.php:72 -
Novatum Payment Gateway for WooCommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )includes/novatum-failure-page-template.php:139 -
Payment Gateway for crypto currencyFewer than 10 installs
do_action( 'woocommerce_thankyou', $order_id )class-wc-7star-pay-gateway.php:160 -
IPS Cart&Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )includes/classes/Front/Thankyou/ThankyouSlotRenderer.php:55 -
ShopGlutFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )modules/order-complete/frontend/class-shopglut-order-complete.php:163 -
QuickoutFewer than 10 installs
do_action( 'woocommerce_thankyou', $order_id )includes/class-quickout-step-router.php:94 -
Cresta Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $id )inc/class-cbc-order.php:135 -
Aluleth FunnelsFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )includes/class-store-woo.php:790 -
Split Backorder for WoocommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )include/checkout/thankyou.php:44 -
PaymentIQ CheckoutFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/Checkout/paymentiq-order-received.php:84 -
Order Tools for WooCommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $order_id )includes/class-aisp-otools-admin-redirect.php:50 -
Web22 CheckoutFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/checkout/thankyou.php:93 -
MCOD Minimalist Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/woocommerce/checkout/thankyou.php:261 -
SuperPlusFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )includes/modules/checkout-steps/templates/woocommerce/checkout/thankyou.php:77 -
IndiaTVDNA Sales Autopilot for WooCommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )includes/class-itdna-wsa-funnels.php:192 -
Aiolos Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )templates/checkout/thankyou.php:120 -
Platecraft Addons for ElementorFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )includes/widgets/class-thank-you.php:596 -
Splitter Orders For WoocommerceFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )inc/checkout/thankyou.php:87 -
Dustid Integration KitFewer than 10 installs
do_action( 'woocommerce_thankyou', $order->get_id() )public/template/woocommerce/checkout/thankyou.php:81
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.