'string', 'sanitize_callback' => 'sanitize_text_field', 'default' => '', ]); register_setting('aisp_autocomplete_settings_group', 'aisp_autocomplete_here_limit', [ 'type' => 'integer', 'sanitize_callback' => 'absint', 'default' => 5, ]); } /** * Render the settings page by including the external template. */ public function render_page() { if (file_exists(plugin_dir_path(SIMPLE_AUTOCOMPLETE_ADDRESS_FILE) . 'admin/settings.php')) { include_once plugin_dir_path(SIMPLE_AUTOCOMPLETE_ADDRESS_FILE) . 'admin/settings.php'; aisp_autocomplete_render_settings_page(); } } }