WordPress action hook

woocommerce_before_checkout_process

Defined by WooCommerce and fired by 14 plugins in total, running on 7M+ sites between them.

How to use woocommerce_before_checkout_process

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_before_checkout_process', function() {
	// 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.

14 plugins that fire woocommerce_before_checkout_process

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'woocommerce_before_checkout_process' ) includes/class-wc-checkout.php:1506
  2. Payment Gateway for PayPal on WooCommerce icon Payment Gateway for PayPal on WooCommerce10,000+ installs do_action( 'woocommerce_before_checkout_process' ) ppcp/includes/class-ppcp-paypal-checkout-for-woocommerce-checkout.php:27
  3. E-cab Taxi Booking Manager for Woocommerce icon E-cab Taxi Booking Manager for Woocommerce2,000+ installs do_action( 'woocommerce_before_checkout_process' ) inc/MPTBM_App_Checkout.php:26
  4. Sezzle Woocommerce Payment icon Sezzle Woocommerce Payment1,000+ installs do_action( 'woocommerce_before_checkout_process' ) includes/class-sezzle-checkout.php:812
  5. Express Checkout via PayPal for WooCommerce icon Express Checkout via PayPal for WooCommerce800+ installs do_action( 'woocommerce_before_checkout_process' ) ppcp/includes/class-ppcp-paypal-checkout-for-woocommerce-checkout.php:22
  6. Checkout.com Payment Gateway icon Checkout.com Payment Gateway200+ installs do_action( 'woocommerce_before_checkout_process' ) flow-integration/class-wc-gateway-checkout-com-flow.php:8432
  7. ATH Movil Pay Button (payment gateway) icon ATH Movil Pay Button (payment gateway)200+ installs do_action( 'woocommerce_before_checkout_process' ) includes/athmpbg-athm-pay-button-checkout.php:10
  8. Pay with ATH Movil (WooCommerce payment gateway) icon Pay with ATH Movil (WooCommerce payment gateway)100+ installs do_action( 'woocommerce_before_checkout_process' ) woocommerce-gateway-athmovil.php:514
  9. Bolt Checkout for WooCommerce icon Bolt Checkout for WooCommerce100+ installs do_action( 'woocommerce_before_checkout_process' ) includes/classes/class-bolt-checkout.php:833
  10. Complete PayPal Payments For WooCommerce icon Complete PayPal Payments For WooCommerce80+ installs do_action( 'woocommerce_before_checkout_process' ) includes/class-complete-paypal-payments-for-woocommerce-checkout.php:18
  11. Checkout Gateway for Paddle icon Checkout Gateway for Paddle80+ installs do_action( 'woocommerce_before_checkout_process' ) includes/WooCheckout.php:154
  12. Briqpay for WooCommerce icon Briqpay for WooCommerce20+ installs do_action( 'woocommerce_before_checkout_process' ) includes/class-checkout-handler.php:2915
  13. Goopter advanced integration for PayPal Complete Payments and for WooCommerce icon Goopter advanced integration for PayPal Complete Payments and for WooCommerceFewer than 10 installs do_action( 'woocommerce_before_checkout_process' ) ppcp-gateway/class-goopter-paypal-ppcp-checkout.php:20
  14. Maytes for WooCommerce icon Maytes for WooCommerceFewer than 10 installs do_action( 'woocommerce_before_checkout_process' ) includes/class-maytes-woo-checkout-route.php:328

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.