New filter on grouped products' permalinks

Closes #8065

* adds new filter: 'woocommerce_grouped_product_list_link'
This commit is contained in:
Gabor Javorszky 2015-04-29 03:07:47 +01:00
parent 7de4d6ad49
commit 72bb8fb553
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ do_action( 'woocommerce_before_add_to_cart_form' ); ?>
<td class="label">
<label for="product-<?php echo $product_id; ?>">
<?php echo $product->is_visible() ? '<a href="' . esc_url( get_permalink() ) . '">' . esc_html( get_the_title() ) . '</a>' : esc_html( get_the_title() ); ?>
<?php echo $product->is_visible() ? '<a href="' . esc_url( apply_filters( 'woocommerce_grouped_product_list_link', get_permalink(), $product_id ) ) . '">' . esc_html( get_the_title() ) . '</a>' : esc_html( get_the_title() ); ?>
</label>
</td>