/** * Show compare fields panel */ function woo_show_compare_fields($product_id = '', $echo = false) { $html = WC_Compare_Hook_Filter::show_compare_fields($product_id); if ($echo) { echo $html; } else { return $html; } }
public static function woocp_product_featured_panel_woo_2_0() { global $post; echo WC_Compare_Hook_Filter::show_compare_fields($post->ID); }