首页 > 解决方案 > 如何在产品页面中隐藏 Dokan 供应商信息?

问题描述

有一个插件叫“ Dokan Vendor Info Hider – Hide Vendor info from Store-list and store page ”,很久没更新了,不能用。还有其他解决方案吗?

标签: wordpresswoocommercedokan

解决方案


如果您想隐藏 Dokan 供应商信息,您需要在主题的 functions.php 文件中使用此代码 -</p>

function dokan_remove_seller_info_option( $tabs ){  
  unset ($tabs ['seller']); 
  return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'dokan_remove_seller_info_option', 11 );

推荐阅读