I want that the products not showing on the shop frontend who are missing the featured image.
I did not found until now a good solution.
I want excluded these products.
Looking for a snippet code or an solution i can filter them on the backend, then i can delete.them.
2
Answers
you can use this query to get products list which does not have featured image
Now you can use
yourdomain.com?delete=Delete
and hit in browser.Yes you can. there is in two way.
Otherwise you can use hooks to remove Remove featured image from showing on product display page
To do this without editing any of the theme files, just add this to a plugin or functions.php in a child theme:
add_filter (‘woocommerce_single_product_image_thumbnail_html’,
‘remove_featured_image’, 10, 3);
function remove_featured_image ($html, $attachment_id, $post_id) {
}