Allow heading filter for up sells component

This commit is contained in:
Jacob Arriola 2020-02-10 15:52:27 -08:00
parent fa1f18e7c1
commit eea787e0e8
1 changed files with 6 additions and 1 deletions

View File

@ -22,8 +22,13 @@ if ( ! defined( 'ABSPATH' ) ) {
if ( $upsells ) : ?>
<section class="up-sells upsells products">
<?php
$heading = apply_filters( 'woocommerce_product_upsells_products_heading', __( 'You may also like&hellip;', 'woocommerce' ) );
<h2><?php esc_html_e( 'You may also like&hellip;', 'woocommerce' ); ?></h2>
if ( $heading ) :
?>
<h2><?php echo esc_html( $heading ); ?></h2>
<?php endif; ?>
<?php woocommerce_product_loop_start(); ?>