public function get_option($key, $default = false) { if ($key == 'table_content') { $key = $this->type . '_' . $key; } return parent::get_option($key, $default); }
public function get_option($key, $default = false) { if (get_option('woocommerce_gzdp_invoice_packing_slip_options') == 'yes') { $key = $this->type . '_' . $key; } else { if ($key == 'table_content') { $key = $this->type . '_' . $key; } } return parent::get_option($key, $default); }