woocommerce_after_set_term_order

woocommerce_after_set_term_order

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_after_set_term_order') is found 1 times:

  • /includes/wc-term-functions.php line 337
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    /**
     * After a term has had it's order set.
    */
    do_action( 'woocommerce_after_set_term_order', $term, $index, $taxonomy );
     
    // If that term has children we walk through them.
    $children = get_terms( $taxonomy, "parent={$term_id}&hide_empty=0&menu_order=ASC" );
    if ( ! empty( $children ) ) {
        $index = wc_reorder_terms( $the_term, $next_id, $taxonomy, $index, $children );
    }