WooCommerce不显示Shop页面标题

WooCommerce Shop页面的默认设置是显示标题,例如Shop页面显示Shop,产品分类页面显示类别名称,可以在functions.php文件中插入以下代码不显示标题。

add_filter( 'woocommerce_page_title', 'woo_shop_page_title');
function woo_shop_page_title( $page_title ) {
    if( 'Shop' == $page_title) {
    return "";
    }
}

也可以在return "";引号中添加自定义标题。
参考资料
My 25 Best WooCommerce Snippets For WordPress No.13