Can I get some product is virtual in Woocommerce by hook?
call this on product-page template where you want to handle icon or tab: <?php if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly global $post, $woocommerce, $product; if ($product-> is_virtual(‘yes’)) { // your logic to display tab or image etc }else{ // your logic not to display tab or image etc … Read more