Allow heading filter for up sells component
This commit is contained in:
parent
fa1f18e7c1
commit
eea787e0e8
|
@ -22,8 +22,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
if ( $upsells ) : ?>
|
if ( $upsells ) : ?>
|
||||||
|
|
||||||
<section class="up-sells upsells products">
|
<section class="up-sells upsells products">
|
||||||
|
<?php
|
||||||
|
$heading = apply_filters( 'woocommerce_product_upsells_products_heading', __( 'You may also like…', 'woocommerce' ) );
|
||||||
|
|
||||||
<h2><?php esc_html_e( 'You may also like…', 'woocommerce' ); ?></h2>
|
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