woocommerce_product_ordering_process_reindexed_products │ action-hook │ WC 11.2.0

Fires after a full catalog reindex was triggered during product ordering.

Usage

add_action( 'woocommerce_product_ordering_process_reindexed_products', 'wp_kama_woocommerce_product_ordering_process_reindexed_products_action', 10, 2 );

/**
 * Function for `woocommerce_product_ordering_process_reindexed_products` action-hook.
 * 
 * @param int            $product_id The product ID that was repositioned.
 * @param array $reindexed  Reindexed product positions (product ID → menu_order),
 *                                   excludes moved products.
 *
 * @return void
 */
function wp_kama_woocommerce_product_ordering_process_reindexed_products_action( $product_id, $reindexed ){
	// action...
}
$product_id(int)
The product ID that was repositioned.
$reindexed(array<int,int>)
Reindexed product positions (product ID → menu_order), excludes moved products.

Changelog

Since 11.2.0 Introduced.

Where the hook is called

WC_AJAX::product_ordering()
woocommerce_product_ordering_process_reindexed_products
woocommerce/includes/class-wc-ajax.php 2821
do_action( 'woocommerce_product_ordering_process_reindexed_products', $product_id, $modifications->reindexed );

Where the hook is used in WooCommerce

Usage not found.