WordPress action hook

woocommerce_form_end

Fired by 4 WordPress plugins, running on 6,090+ sites between them.

How to use woocommerce_form_end

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:

functions.php
add_action( 'woocommerce_form_end', function( $id ) {
	// Your code runs here.
}, 10, 1 );

Argument names come from Checkout with Zelle on Woocommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire woocommerce_form_end

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

  1. Checkout with Zelle on Woocommerce icon Checkout with Zelle on Woocommerce3,000+ installs do_action( 'woocommerce_form_end', $this->id ) includes/pages/checkout.php:30
  2. Checkout with Cash App on WooCommerce icon Checkout with Cash App on WooCommerce2,000+ installs do_action( 'woocommerce_form_end', $this->id ) includes/class-wc_cash_app_pay_gateway.php:499
  3. Receive customer payments on Woocommerce icon Receive customer payments on Woocommerce1,000+ installs do_action( 'woocommerce_form_end', $this->id ) includes/class-wc_venmo_pay_gateway.php:198
  4. Checkout with Mobile Money, Western Union, WorldRemit, WorldRemit icon Checkout with Mobile Money, Western Union, WorldRemit, WorldRemit90+ installs do_action( 'woocommerce_form_end', $this->id ) momo.php:375

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.