Php 如何从woocommerce中的产品缩略图库中删除/跳过第一个图像?
你可以访问这个网站。我曾经Php 如何从woocommerce中的产品缩略图库中删除/跳过第一个图像?,php,wordpress,woocommerce,Php,Wordpress,Woocommerce,你可以访问这个网站。我曾经 add_filter('woocommerce_single_product_image_缩略图_html','remove_characterized_image',10,2); 函数remove\u特色图像($html,$attachment\u id){ 全球$post$product; $featured\u image=get\u post\u缩略图\u id($post->id); 如果($attachment\u id==$profected\u ima
add_filter('woocommerce_single_product_image_缩略图_html','remove_characterized_image',10,2);
函数remove\u特色图像($html,$attachment\u id){
全球$post$product;
$featured\u image=get\u post\u缩略图\u id($post->id);
如果($attachment\u id==$profected\u image)
$html='';
返回$html;
}
此代码用于删除产品功能图像,但在缩略图库中仍显示如何删除它