/** * Correios options page. */ public function admin_options() { if ($this->is_corporate()) { parent::admin_options(); } else { $GLOBALS['hide_save_button'] = true; echo '<h3>' . esc_html($this->method_title) . '</h3>'; echo '<p>'; esc_html_e('e-Sedex only works on corporate mode. Enable this options by setting "Corporate" in the "Service Type" option in', 'woocommerce-correios'); echo ' <a href="' . esc_url(admin_url('admin.php?page=wc-settings&tab=integration§ion=correios')) . '">' . esc_html__('Correios settings screen.', 'woocommerce-correios') . '</a>'; echo '</p>'; } }