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?
- Data sanitization: Best Practices with code examples
- Prevent WordPress from automatically installing a new theme each year
- Can we use one WordPress installation for multiple databases, domains and content directories
- When adding a custom REST endpoint, where do you put the endpoint function, and where do you put the function registration call?
- global menus made from master site’s custom menus wpmu network
- Capability to edit own posts and not others
- Is there a way to create invisible pages?
- How to handle security on a wordpress site? [closed]
- Which freelance sites are recommended to find WordPress developers/programmers, etc
- Syncing Avatars across multisite
- How to move the wordpress site from test url to main url? [duplicate]
- Creating user relationships
- Paginate Author’s Post List on Custom Author Page (ANOTHER THEORY)
- title, content, feature images
- Warning: Creating default object… when altering Customize panels
- WordPress customizer Preview not loading
- How to add an extra variable to login and authenticate it?
- Color swatches on category page? [closed]
- Theme Customization through admin panel. (Appearance-Customize)
- Customizer: save setting/control content to post/page
- Best practice – pages – ACF or inline coding
- Diffrent User registration form for doctor and patient
- User can not login
- wpdb custom tables without plugin
- Add a searchbox to the body of a page
- How to put a site offline, including images?
- str_replace inside specific css files [closed]
- WordPress archive index page
- How to make WordPress search page use a relative path
- Woocommerce custom archive page custom content and shortcode
- Page flickers in customization mode
- We are facing this error in header unable to understand the issue
- When is the wp-settings-[time] cookie generated?
- Need to add custom text field to Woocommerce under add to cart button
- Hide entry-header for a specific category
- Multiple loops on same category with different design
- How Can I add show_post_count in get_archives_link?
- Trouble with custom login page
- Customize WP website specific column with CSS
- Help needed creating a custom Hamburger menu in header
- admin aoolbar add_node() and pulling in my post slug
- Custom Form Input not saving to Database
- How to create 2 preview button in a post?
- Change the default WordPress image on the dashboard login to a custom image [duplicate]
- Custom terms in custom category taxonomy
- Setting Custom WordPress “Posts page” AS “Front page”
- Custom Query Arguments
- Gallery Pagination by Row
- use another theme for just one page
- Instead of Custom CSS Theme CSS is loading
- Custom Menu (only showing direct cildren) ACF not showing