Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何从woocommerce中的产品缩略图库中删除/跳过第一个图像?_Php_Wordpress_Woocommerce - Fatal编程技术网

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;
}
此代码用于删除产品功能图像,但在缩略图库中仍显示如何删除它