ID, 'wholesale_multi_user_pricing', true); if (!empty($pricingDataArr) && is_array($pricingDataArr)) { $pricingData = reset($pricingDataArr); if ($post->post_type === 'product_variation') { if (isset($pricingData[$post->ID]) && isset($pricingData[$post->ID]['wholesaleprice'])) { $value = $pricingData[$post->ID]['wholesaleprice']; } } else { if (isset($pricingData['wholesale_price'])) { $value = $pricingData['wholesale_price']; } } } return !empty($value) ? $this->getValueWithCurrency(strval($value)) : ''; } public function isEnabled() { return !function_exists('is_plugin_active') ? in_array('woocommerce-wholesale-pricing/woocommerce-wholesale-pricing.php', (array)get_option('active_plugins', array())) : is_plugin_active('woocommerce-wholesale-pricing/woocommerce-wholesale-pricing.php'); } }