CUstom featured Image
-
Hi WP Lister Team,
is it possible to use a custom featured image for the ebay auction, not the one from the woocommerce shop product?
We need that for a certain profile/template.
Edit: I found that filter. Is it possible to check first if template ID = 3? Because we use a spcific template and a specific profile for the products we want to show the custom featueed image. We do not want a custom featued image for all products.
add_filter( "wple_get_product_main_image", "my_custom_ebay_product_main_image", 10, 2 );functionmy_custom_ebay_product_main_image( $image_url, $post_id) {
// Check if a custom eBay image is set with AC
$ebay_image= 'https://linkto image.com/img.jpg', $post_id);
$image_url= $ebay_image? $ebay_image: $image_url;
return$image_url;
}
- The topic ‘CUstom featured Image’ is closed to new replies.