Allow related title changes
This modification enables the change of the related products title via a filter
This commit is contained in:
parent
05a89e849e
commit
36f2b7d744
|
@ -22,8 +22,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
if ( $related_products ) : ?>
|
if ( $related_products ) : ?>
|
||||||
|
|
||||||
<section class="related products">
|
<section class="related products">
|
||||||
|
<?php
|
||||||
<h2><?php esc_html_e( 'Related products', 'woocommerce' ); ?></h2>
|
$heading = apply_filters( 'woocommerce_product_related_heading', __( 'Related products', 'woocommerce' ) );
|
||||||
|
if ( $heading ) : ?>
|
||||||
|
<h2><?php echo esc_html( $heading ); ?></h2>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php woocommerce_product_loop_start(); ?>
|
<?php woocommerce_product_loop_start(); ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue