/** * Generate settings page HTML * * @since 4.5 */ public function generate_settings_html($form_fields = array()) { $rates_checked = get_option('wootax_rates_checked'); if (!$rates_checked && wt_has_other_rates()) { require WT_PLUGIN_PATH . 'templates/admin/delete-rates.php'; // Add WooTax tax rate if one is not present WC_WooTax::maybe_add_wootax_rate(); } else { parent::generate_settings_html($form_fields); } }