wordpress - 如何在产品页面中隐藏 Dokan 供应商信息?
问题描述
有一个插件叫“ Dokan Vendor Info Hider – Hide Vendor info from Store-list and store page ”,很久没更新了,不能用。还有其他解决方案吗?
解决方案
如果您想隐藏 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 );
推荐阅读
- python - 无法在 Windows 上为 Py 3.7 安装 pycurl
- reactjs - CreateContext 挂钩不允许渲染任何其他组件
- docker - 删除 .../docker/overlay2 目录下的孤立文件夹(哈希)是否安全
- reactjs - 如何为“内部项目”拥有“子”package.json
- gnuplot - 如何摆脱gnuplot右侧的线?
- swift - 如何使用 API 调用数据更新视图
- mysql - 这在mysql中是否可行(连接两个表并过滤掉重复数据)
- c# - 从 AspNetIdentity IdentityUser 中删除属性
- python - 不要在 .loc[] datetimeIndex 过滤中包含下边框
- python - 在python中修改txt文件