Honestly for the select field it’s not so important what the choices are for sanitizing the field and in fact what you are doing I don’t believe is a good idea if a user wants to filter your settings to add new options to the select field. More importantly you are looking to sanitize the output which is a string value. So using wp_strip_all_tags or even esc_html for the sanitize callback I believe would be best. Your input will still be sanitized for malicious code but also allow for easier tweaking via a child theme.
But in terms of what your reviewer is telling you is most likely you are using the personal_lite_select_callback function for multiple select options in the customizer some which have different values so they want you to make a new function for each.
Related Posts:
- Custom editable content for front page from Theme Customizer
- Trouble creating custom sanitization function for user list dropdown
- Default Customizer Code
- Where is Customizer related data stored is the database?
- New WP_Customize API – how does it work under the hood?
- How do I implement selective refresh with a customizer setting?
- How to create a theme customizer ‘sub’ panel?
- Use default value of wp_customizer in theme_mod output?
- Repeater field in Customizer
- Adjust the Device Preview sizes used in the WP 4.5 Customizer
- Disable Visible Edit Shortcuts in the Customizer
- WP Customizer – Prevent live preview
- How to upload multiple images with WP_Customize_Media_Control
- Different customizer previewUrls per section
- Is there any way to add placeholder for WordPress Customizer text input fields
- How to Add Customizer Setting in Child Theme
- How WP_Customize_Background_Image_Control is supposed to work?
- How to print the value of a custom control in the Customizer?
- Add/remove controls dynamically based on other settings in Customizer
- Customizer JS API dynamically add sections and controls
- Get all registered wp theme customizer sections?
- Add custom background to div in home page
- Theme customizer – possible to disable Live Preview?
- get_theme_mod doesn’t return the theme customizer preview’s new values in after_setup_theme hook
- How do I handle the “WP_Customize_Cropped_Image_Control” callback?
- How to deal with multiple select options using register_setting() theme options
- How to mix partial and full page refresh in the same section of the customizer?
- Conditional Logic to Check for Site Icon
- customize_register with Multiple controls/settings – how to get values?
- Theme Customization API options on install
- How do I check if user input in a field in the customizer is a number?
- How to access the nav_menus panel with the customizer api?
- Add a “loading” notice when Customizer is making changes
- Make Theme Options Native to Theme Customizer
- How do I conditionally enqueue stylesheets or scripts in theme customizer settings?
- Manipulating post meta in the customizer
- Widgets not working in Customizr but working in Appearance
- In the new Theme Customizer API, how to send a value from the front back to the admin panel?
- Internalize get_theme_mod CSS Into Stylesheet?
- View category in the preview of Theme Customizer
- How to Save Different Settings Options Using Settings API and/or the Theme Optimizer
- Customiser `active_callback` not working on control with `postMessage` transport method
- Is it possible to conditionally displaying and hiding of customizer controls for each device preview?
- How to get control choices from $setting object passed to sanitize_callback
- get_theme_mod(); returns nothing
- Can I change a control’s transport in Customizer depending on the previewed page?
- Passing data from customize-controls.js to the customize-preview.js
- Add or remove HTML class with selective refresh?
- How do I properly format the user_role array?
- Get attachment id from WP Customizer
- How to output WP_Customize_Cropped_Image_Control setting?
- Why does get_theme_mod return blank (or default value) but get_option returns saved value?
- WordPress Customizer: How can you have multiple active callbacks on one control?
- How to hook on customizer section expanded/active/opened event?
- How to get input_attrs in the sanitize function?
- Get current post ID of customizer preview window
- Deactivate sections/panels when the Customizer finishes loading
- How to change in customizer the “site identity” tab required capabilities
- How do I use add_control to offer a list of all pages in the customiser?
- Add button to Customizer
- Visible Edit Shortcut for WordPress menu that uses nav walker
- How to add theme customizer control to specific page?
- Customizer active callback live toggle controls
- Why is remove_setting and remove_control not working?
- Section Name for Menu in Theme Customizer
- Customizer image control default value showing in customizer but not on frontend
- Is it still possible to nest panels within panels within the customizer?
- Get_theme_mod not retrieving value
- Need to run a plugin on Customize.php
- Customizer preview doesn’t update get_option() value properly
- How to add default images into theme customizer image control?
- What is the difference between sanitize_text_field() and wp_filter_nohtml_kses()?
- Customizer Issue, Default Settings not working
- Woocommerce: Changing the variations select default value? [closed]
- How to move Menus customizer section directly under Site Identity?
- WP customizer + gulp + browsersync = refused to display in iframe?
- Customizer: How do you add HTML to control labels?
- Set Default Page On Customizer Live Preview
- Rename and rearrange customizer section
- Make Customizer Load Specific Page
- Theme Customizer Custom Background / Header Image
- get_theme_mod not working
- Customizer not saving image settings
- How to hide few theme customization options – TwentySeventeen theme
- Add new Control to Customizer to modify Headings (h1, h2, h3…) Color
- Panel description in Customizer does not show up
- Removing http:// from esc url() for wordpress customizer code
- Theme Customizer – My panel disappears
- Send data from Customizer Settings to Customizer Preview with settingless control
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Author functions don’t work in customizer’s selective refresh
- Modify the Additional CSS section (adding a disclaimer)
- How to remove mixed content warnings in WP Customizer
- How to extend Customizer payload sent when ‘Save & Publish’ is triggered
- Does the customizer support multiple templates?
- Using Theme Customizer Built-In Sections
- How to use rgba color from theme customizer color picker
- Theme Customizer changes are dissappearing when change page
- Custom widget select options needs to stay selected after save