Override function in woocommerce/inc/wp-loop.php #597
-
Thanks in advance, I'm trying to override function ("custom_loop_product_thumbnail()") in woocommerce/inc/wp-loop.php.
It removes all thumbnails from the products page except the 1st one: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Are you able to create a Pull Request and wrap this function in a |
Beta Was this translation helpful? Give feedback.
bootscore-child-main/woocommerce/inc/wc-loop.php
isn't a template file and you cannot override it by storing a copy in your child. But I see, this function is still not pluggable and can't be overridden in child yet.Are you able to create a Pull Request and wrap this function in a
if
...endif
statement to make this function pluggable? This would be the fastest way to solve this. Otherwise, please open an issue that we have this on our tracking list. But it will take some time for us to fix this.