term_id); $location_descriptions = []; foreach ($location_names as $location_name) { $location_descriptions[] = $location_name; } $location_string = implode(', ', $location_descriptions); $menu_location_pairs[$menu->name] = $menu->name . (empty($location_string) ? '' : " (Location: $location_string)"); } // Check if the form has been submitted and handle the general settings if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['bame1-general-settings-nonce'])) { if (wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['bame1-general-settings-nonce'])), 'bame1-general-settings-save')) { if (isset($_POST['ampro_primary'])) { // Update the option with the sanitized menu name update_option('ampro_primary', sanitize_text_field($_POST['ampro_primary'])); $settings_updated = true; } } } if ($settings_updated) { echo '
Settings updated.
Accessibility Menu Pro replaces the standard menus in your WordPress theme with an American Disabilities Association (ADA) AA-compliant menu. All HTML semantics are compliant with accessibility standards, ensuring that your site is more accessible to users with disabilities.