admin管理员组文章数量:1391937
I want to hide "sold by" on certain pages with id page 43 if I use this code, it's hidden for all pages on my site
/ Remove sold by in product loops /
remove_action ('woocommerce_after_shop_loop_item', array ('WCV_Vendor_Shop', 'template_loop_sold_by'), 9, 2);
how to make a special hidden on the page with id 43 thank you
I want to hide "sold by" on certain pages with id page 43 if I use this code, it's hidden for all pages on my site
/ Remove sold by in product loops /
remove_action ('woocommerce_after_shop_loop_item', array ('WCV_Vendor_Shop', 'template_loop_sold_by'), 9, 2);
how to make a special hidden on the page with id 43 thank you
Share Improve this question asked Feb 29, 2020 at 2:50 Arwahi MArwahi M 12 bronze badges 2- currently, where have you put this code? – Tanmay Patel Commented Feb 29, 2020 at 3:37
- in my active theme function.php – Arwahi M Commented Feb 29, 2020 at 11:49
1 Answer
Reset to default 0Try this:
if (is_page('43')){ remove_action ('woocommerce_after_shop_loop_item', array ('WCV_Vendor_Shop', 'template_loop_sold_by'), 9, 2);}
本文标签: phpI want to hide quotsold byquot on certain pages with id page 43
版权声明:本文标题:php - I want to hide "sold by" on certain pages with id page 43 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744705826a2620837.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论