list_product_cats

list_product_cats

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('list_product_cats') is found 2 times:

  • /includes/walkers/class-wc-product-cat-dropdown-walker.php line 58

    } else {
    $pad = ”;
    }

    $cat_name = apply_filters( ‘list_product_cats’, $cat->name, $cat );
    $value = ( isset( $args[‘value’] ) && ‘id’ === $args[‘value’] ) ? $cat->term_id : $cat->slug;
    $output .= “\t

  • /includes/walkers/class-wc-product-cat-list-walker.php line 105
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
        if ( $args['current_category_ancestors'] && $args['current_category'] && in_array( $cat_id, $args['current_category_ancestors'], true ) ) {
            $output .= ' current-cat-parent';
        }
     
        $output .= '"><a href="' . get_term_link( $cat_id, $this->tree_type ) . '">' . apply_filters( 'list_product_cats', $cat->name, $cat ) . '</a>';
     
        if ( $args['show_count'] ) {
            $output .= ' <span class="count">(' . $cat->count . ')</span>';
        }
    }