diff --git a/classes/class-wc-product.php b/classes/class-wc-product.php index 01b8576d7c0..89318f5692d 100644 --- a/classes/class-wc-product.php +++ b/classes/class-wc-product.php @@ -493,7 +493,7 @@ class WC_Product { */ function get_title() { $this->get_post_data(); - return apply_filters('woocommerce_product_title', apply_filters('the_title', $this->post->post_title), $this); + return apply_filters('woocommerce_product_title', apply_filters( 'the_title', $this->post->post_title, $this->id ), $this); } diff --git a/templates/archive-product.php b/templates/archive-product.php index 677e3789131..fb540026c28 100644 --- a/templates/archive-product.php +++ b/templates/archive-product.php @@ -34,7 +34,7 @@ get_header('shop'); ?> post_title ); + echo apply_filters( 'the_title', ( $shop_page_title = get_option( 'woocommerce_shop_page_title' ) ) ? $shop_page_title : $shop_page->post_title, $shop_page->ID ); ?> diff --git a/woocommerce-template.php b/woocommerce-template.php index 8cf6314e282..b6815bae569 100644 --- a/woocommerce-template.php +++ b/woocommerce-template.php @@ -45,7 +45,7 @@ if ( ! function_exists( 'woocommerce_content' ) ) { post_title ); + echo apply_filters( 'the_title', ( $shop_page_title = get_option( 'woocommerce_shop_page_title' ) ) ? $shop_page_title : $shop_page->post_title, $shop_page->ID ); ?>