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:
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.
-
WooCommerce7+ million installs
do_action( 'woocommerce_before_checkout_process' )includes/class-wc-checkout.php:1506 -
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 -
E-cab Taxi Booking Manager for Woocommerce2,000+ installs
do_action( 'woocommerce_before_checkout_process' )inc/MPTBM_App_Checkout.php:26 -
Sezzle Woocommerce Payment1,000+ installs
do_action( 'woocommerce_before_checkout_process' )includes/class-sezzle-checkout.php:812 -
Express Checkout via PayPal for WooCommerce800+ installs
do_action( 'woocommerce_before_checkout_process' )ppcp/includes/class-ppcp-paypal-checkout-for-woocommerce-checkout.php:22 -
Checkout.com Payment Gateway200+ installs
do_action( 'woocommerce_before_checkout_process' )flow-integration/class-wc-gateway-checkout-com-flow.php:8432 -
ATH Movil Pay Button (payment gateway)200+ installs
do_action( 'woocommerce_before_checkout_process' )includes/athmpbg-athm-pay-button-checkout.php:10 -
Pay with ATH Movil (WooCommerce payment gateway)100+ installs
do_action( 'woocommerce_before_checkout_process' )woocommerce-gateway-athmovil.php:514 -
Bolt Checkout for WooCommerce100+ installs
do_action( 'woocommerce_before_checkout_process' )includes/classes/class-bolt-checkout.php:833 -
Complete PayPal Payments For WooCommerce80+ installs
do_action( 'woocommerce_before_checkout_process' )includes/class-complete-paypal-payments-for-woocommerce-checkout.php:18 -
Checkout Gateway for Paddle80+ installs
do_action( 'woocommerce_before_checkout_process' )includes/WooCheckout.php:154 -
Briqpay for WooCommerce20+ installs
do_action( 'woocommerce_before_checkout_process' )includes/class-checkout-handler.php:2915 -
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 -
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.