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

do_action('woocommerce_after_single_product_ordering') is found 1 times:

  • /includes/class-wc-ajax.php line 2124
    2120
    2121
    2122
    2123
    2124
    2125
    2126
    2127
    2128
    2129
    2130
         * 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;