woocommerce_after_single_product_ordering

woocommerce_after_single_product_ordering

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_after_single_product_ordering') is found 1 times:

  • /includes/class-wc-ajax.php line 2116
    			 * When a single product has gotten it's ordering updated.
    			 * $id The product ID
    			 * $index The new menu order
    			*/
    			do_action( 'woocommerce_after_single_product_ordering', $id, $index );
    		}
    
    		if ( isset( $menu_orders[ $previd ] ) ) {
    			$menu_orders[ $sorting_id ] = $menu_orders[ $previd ] + 1;
    		} elseif ( isset( $menu_orders[ $nextid ] ) ) {
    			$menu_orders[ $sorting_id ] = $menu_orders[ $nextid ] - 1;