woocommerce_after_single_product_ordering
When a single product has gotten it's ordering updated. $id The product ID $index The new menu order
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 $id * @param $index * * @return void */ function wp_kama_woocommerce_after_single_product_ordering_action( $id, $index ){ // action... }
- $id
- -
- $index
- -
Where the hook is called
woocommerce_after_single_product_ordering
woocommerce/includes/class-wc-ajax.php 2122
do_action( 'woocommerce_after_single_product_ordering', $id, $index );