woocommerce_after_single_product_ordering │ action-hook │ WC 3.1.0

When a single product has gotten its ordering updated.

Usage

add_action( 'woocommerce_after_single_product_ordering', 'wp_kama_woocommerce_after_single_product_ordering_action', 10, 2 );

/**
 * Function for `woocommerce_after_single_product_ordering` action-hook.
 * 
 * @param int $id    The product ID.
 * @param int $index The new sort position.
 *
 * @return void
 */
function wp_kama_woocommerce_after_single_product_ordering_action( $id, $index ){
	// action...
}
$id(int)
The product ID.
$index(int)
The new sort position.

Changelog

Since 3.1.0 Introduced.

Where the hook is called

WC_AJAX::product_ordering()
woocommerce_after_single_product_ordering
woocommerce/includes/class-wc-ajax.php 2777
do_action( 'woocommerce_after_single_product_ordering', $id, $index );

Where the hook is used in WooCommerce

Usage not found.