post_type ? parent::getValue($post, array('value' => 'hwp_var_gtin')) : parent::getValue($post, array('value' => 'hwp_product_gtin')); } public function isEnabled() { return !function_exists('is_plugin_active') ? in_array('woo-add-gtin/woocommerce-gtin.php', (array)get_option('active_plugins', array())) : is_plugin_active('woo-add-gtin/woocommerce-gtin.php'); } }