'sanitize_text_field', 'default' => '', ]); register_setting('aisp_global_settings', 'aisp_autocomplete_here_limit', [ 'sanitize_callback' => 'absint', 'default' => 5, ]); } public function render_settings_page() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Safe read for tab navigation in admin settings. $active_tab = isset($_GET['tab']) ? sanitize_key($_GET['tab']) : 'settings'; echo '
'; echo '

' . esc_html__('AISP Smart Autocomplete Address', 'aisp-smart-autocomplete-address') . '

'; echo ''; // Render active tab switch ($active_tab) { case 'settings': $this->render_global_tab(); break; case 'custom-field': if (class_exists('AISP_Autocomplete_Custom_Field_Integration')) { AISP_Autocomplete_Custom_Field_Integration::render_settings_tab(); } break; case 'woocommerce': if (class_exists('AISP_Autocomplete_WC_Integration')) { AISP_Autocomplete_WC_Integration::render_woocommerce_tab(); } break; case 'fluent-forms': if (class_exists('AISP_Autocomplete_Fluent_Forms_Integration')) { AISP_Autocomplete_Fluent_Forms_Integration::render_settings_tab(); } break; case 'sureforms': if (class_exists('AISP_Autocomplete_SureForms_Integration')) { AISP_Autocomplete_SureForms_Integration::render_settings_tab(); } break; case 'contact-form-7': if (class_exists('AISP_Autocomplete_CF7_Integration')) { AISP_Autocomplete_CF7_Integration::render_settings_tab(); } break; case 'wpforms': if (class_exists('AISP_Autocomplete_WPForms_Integration')) { AISP_Autocomplete_WPForms_Integration::render_settings_tab(); } break; case 'help': $this->render_help_tab(); break; default: $this->render_global_tab(); break; } echo '
'; } private function render_global_tab() { ?>

tags linking to the HERE Developer Portal. wp_kses_post(__('Enter your HERE API key. Get it from the %1$sHERE Developer Portal%2$s.', 'aisp-smart-autocomplete-address')), '', '' ); ?>

  1. tags linking to the HERE Developer Portal for account creation. wp_kses_post(__('Go to the %1$sHERE Developer Portal%2$s and sign in or create a free account.', 'aisp-smart-autocomplete-address')), '', '' ); ?>


  2. https://yoursite.com
    https://www.yoursite.com

tags. wp_kses_post(__('The free plan includes %1$s1,000 autocomplete requests per day%2$s — enough for most small to medium WooCommerce stores.', 'aisp-smart-autocomplete-address')), '', '' ); ?>

tags linking to HERE API documentation. wp_kses_post(__('Need help? Visit the %1$sHERE API Documentation%2$s.', 'aisp-smart-autocomplete-address')), '', '' ); ?>