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.9.5.1

do_action('woocommerce_after_single_product_ordering') is found 1 times:

  • /includes/class-wc-ajax.php line 2122
    			 * 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;