New filter on grouped products' permalinks
Closes #8065 * adds new filter: 'woocommerce_grouped_product_list_link'
This commit is contained in:
parent
7de4d6ad49
commit
72bb8fb553
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue