The add_setting logic cant find the my_theme_sanitize_select function, you need to tell it where it is:
'sanitize_callback' => array( $this, 'my_theme_sanitize_select' ),
remember that your function is inside a class so it cant just be accessed, add this to your class:
public function my_theme_sanitize_select( $input, $setting ) {
$from_parent = my_theme_sanitize_select( $input, $setting );
return $from_parent;
}
Related Posts:
- New WP_Customize API – how does it work under the hood?
- Disable Visible Edit Shortcuts in the Customizer
- How to Add Customizer Setting in Child Theme
- customize_register with Multiple controls/settings – how to get values?
- 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?
- get_theme_mod(); returns nothing
- How to get input_attrs in the sanitize function?
- How to change in customizer the “site identity” tab required capabilities
- Customizer image control default value showing in customizer but not on frontend
- Customizer: How do you add HTML to control labels?
- Add new Control to Customizer to modify Headings (h1, h2, h3…) Color
- How to extend nav-menu-item-control data in Appearance > Customize?
- What will happen to the additional CSS when the theme is updated?
- Convert an theme options page to use in customize.php also?
- Add more then one site logo – custom-logo theme support
- Hide devices selection from customizer?
- Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize
- Enabling Additional CSS / custom-css
- Bind JS event to WordPress control customizer
- For a specific theme, how do I build a list of all the possible theme modification names?
- Save & Publish disabled for two dimensional array Customizer
- Allow guests to use WP Customizer but disable save button
- How do I remove a customiser option from a parent theme in a child theme?
- How to add css option to Header Image customizer?
- Trigger Customizer Publish (save) Action
- How to edit alternate inactive themes in “Appearance -> Customise” screen?
- Is it necessary to prefix theme_mod, section id and panel id in the customizer?
- Hide Customizer’s Widget Choices From The List
- theme customizer – can a single option pass multiple values?
- How to remove Customizer’s Section and move Control straight to Panel using Child Theme
- Remove Customizer Control Choices (Type: Radio Array) using Child Themes
- Dynamic Control in customiser
- Is it possible to rename a customizer control heading?
- Is it possible to add custom badges to product attributes conditionally, based on custom field?
- Will WordPress updates remove Gutenberg Additional Classes?
- Easily add custom HTML outside the main container?
- Customizer options limited to specific user roles?
- Can’t Customize WordPress Page
- WordPress Customizer: Check for value of CSS selector and replace it
- In wordpress customizer api adding div wrap to control
- Apply `the_content’ filter to theme customisation live preview
- retrieve theme custom settings
- Multiple Customizers
- Which IDE best for WordPress Development? [closed]
- Refresh Customize Section (not preview)
- Do i need to use PHP in customizer api?
- Where did I put this one line of css?
- Hover Hide-Visible Additional CSS not working in WordPress website, but shows properly in Customize window
- WordPress objects class reference
- How do you add pages on a staging server, and then move them over to production
- Any Hook Called When Post Becomes Published?
- Automatically wrap post image in div
- Theme Twenty Fifteen: Customize Color Scheme Customizer
- How to handle security on a wordpress site? [closed]
- Is it possible to set default values for custom fields in a custom post type while my plugin is being activated?
- Modify the Additional CSS section (adding a disclaimer)
- WordPress Template not affecting the working, keeps defaulting to the index.php template
- Reinstall WordPress Without Losing Data
- Paginate Author’s Post List on Custom Author Page (ANOTHER THEORY)
- WP Northwind for Theme Development?
- list/consult Taxonomy only for the respective author/creator in dashbboard
- How to check if site is created by wordpress? [duplicate]
- Follow me for WordPress blogs (multi-authors)
- Pagination Issues using WP_Paginate Plugin
- custom theme ,add media not showing images in media library
- Get Image from Media Library with the Title
- wpdb custom tables without plugin
- Can I add/replace the WordPress image in the Dashboard
- Post thumbnails not working in my new install of WP 3.1 with Twenty Ten theme
- Create a page that dynamically loads data
- How can I apply custom sanitization to new usernames?
- How to create custom layouts and static pages in themes for clients
- Dynamic Sidebars based on page name
- How can I create a basic PHP that can lives outside WP?
- Make a difficult page editable
- How do I change my permalink structure to a custom structure on an established blog?
- Overstand theme set up issue
- Add producthunt badge to wordpress menu
- How do I make elements in mobile only reverse order?
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- What is difference between add_theme_support and Theme Customization API?
- Perform javascript when an input in Customizer is selected/focused?
- Problems with running a 2nd installation of WordPress on my domain?
- Change the WordPress > Error title?
- How to implement custom Javascript to my site
- How do I enable the text editer in my WordPress theme? [closed]
- Style Radio Buttons inside Edit Page (Custom Fields)
- WordPress Customizer Help with FontAwesome Icon
- Having a forum in a subfolder
- Define excerpt length by inserting read more tag
- Taxonomy template by post type
- Create advanced portal website with sections – taxonomy usage?
- Custom Query for Taxonomy
- WordPress Home page modification [closed]
- How to stop login for SPECIFIC users BEFORE a specified date
- Woocommerce send custom email receipt based on product attribute
- Partial refresh in WordPress live preview
- WordPress Page Width Issue: Seeking Solutions