WordPress action hook

clone_extra_shipping_fields_hook

Fired by 3 WordPress plugins, running on 720+ sites between them.

How to use clone_extra_shipping_fields_hook

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

functions.php
add_action( 'clone_extra_shipping_fields_hook', function( $order_id, $original_order_id ) {
	// Your code runs here.
}, 10, 2 );

Argument names come from Ultimate Order Combination's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

3 plugins that fire clone_extra_shipping_fields_hook

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

  1. Ultimate Order Combination icon Ultimate Order Combination400+ installs do_action( 'clone_extra_shipping_fields_hook', $order_id, $this->original_order_id ) inc/functions.php:615
  2. Order Splitter for WooCommerce icon Order Splitter for WooCommerce300+ installs do_action( 'clone_extra_shipping_fields_hook', $order_id, $this->original_order_id ) inc/functions.php:4582
  3. WC Order Split icon WC Order Split20+ installs do_action( 'clone_extra_shipping_fields_hook', $order_id, $original_order_id ) inc/functions.php:510

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.