The settings are saved via ajax, with the action customize_save. In the wp-includes/class-wp-customize-manager.php class, the callback for this ajax method is the save method (see source)
This triggers the customize_save action, prior to updating each of the settings.
Each setting is actually an instance of the class WP_Customize_Setting and saving the setting triggers the action
customize_save_{$setting_id}
if you wanted to trigger the action when a particular setting is saved (unfortunately there’s no filter).
The save method calls the update method, which behaves different depending on whether the settings is a ‘theme_mod’ or ‘option’. Regardless they are both saved using update_option (and so passed through the appropriate filters). The former is done so via set_theme_mod().
Related Posts:
- How to add custom css file in theme?
- get_template_part vs action hooks in themes
- Do I actually need to link my theme’s style.css in the theme files
- CSS classes for theme
- How to remove search bar from a wordpress theme? [closed]
- Get url of thumbnail from the media uploader
- Page template in two level deep folder
- Theme file for all pages that are a child of a specific page
- Child Theme not loading parent CSS
- Use of undefined constant FS_CHMOD_DIR – assumed ‘FS_CHMOD_DIR’
- How to show next Post Thumbnail image in WordPress using current post id
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- How do I get a parent theme modification from a child theme?
- Removing the default sidebar from admin panel
- First post of each category
- how to pull wordpress post comments to a external page
- index.php is not loaded for single posts
- Why use while over if in single wordpress posts?
- WordPress website loads but is not displayed until page scrolled
- Create a theme by combining a parent and a child theme
- Theme Customizer not loading
- How to add oEmbed support to my theme?
- Single Theme folder for Multiple WordPress
- How i can get widgets areas working in customizer?
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Cutomize Colors utility: How to add more configurable colors to a theme
- Where is definied the theme location for the main menu in a WordPress template?
- If I build a custom theme, will it update?
- Recommended tools for Theme Development with SASS [closed]
- What tags should be used for themes to show the type of layout?
- How to disable automatic colors in the Twenty Twenty theme?
- What are non-printable characters doing in my theme?
- Gutenberg – editor-font-sizes in functions not working
- Cannot figure out how to overwrite files in child theme
- WordPress post arrangement using post_class
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- How can I let templates choose which stylesheets are enqueued?
- My Admin bar covers my sticky navbar [closed]
- Lightweight framework [closed]
- How to edit my theme for full width?
- Edit footer via customizer
- loading blank white screen of slide
- Migrated WordPress site renders Chinese
- Echo all category names, apart from one
- Admin: sub menu doesnt display under apperance when activate my themes
- Overrite parent functions using child functions
- Does code in function.php differ from theme to theme
- Create a child theme from multiple themes
- Theme not showing up
- Change image size depending on page
- Are seven additional image sizes are too many?
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- registering a global template wordpress 6.0
- Copying the theme style files and images to duplicate the website but with a difference
- I have WordPress setup on primary domain, how do I set it up on its subdomain using the same database?
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Theme Action to hook for one time only function [duplicate]
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- How do I include a partial from a directory below a wordpress theme directory?
- Remove h1 from 2015 theme
- WordPress pulling in random page themes
- Can’t change theme name
- How to remove permalinks links presents in each page of my site?
- first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]
- HTTP Error when uploading images over specific dimensions
- Why is the `if else` not working?
- showing all recent posts in theme
- Is there a way to serve different resolution images to different devices?
- iPad WordPress theme?
- custom Background not showing after upgrade?
- Rolling your own WordPress Themes
- How to make a function occurs for one time?
- List categories of a post hierarchically?
- PHP Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE), expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) on line 124
- Problem with pagination link (error 404)
- How to display home page last modified date in anywhere of wordpress theme?
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- Is a multipurpose theme an alternative to modifying or creating a theme from scratch?
- Local theme changes upload on server but theme changes not showing
- WooCommerce – edit templates
- WordPress Custom font not found
- How to dowload and edit content of a website
- New created Theme leads to malfunctioning Xampp Apache –> functions.php is cause
- WordPress Blog Page displaying nothing
- Best strategy for providing theme options using customizer
- Next post in category
- Magnific Popup – Add Caption to Images
- Why do WordPress developers use so many opening and closing PHP tags when developing themes? [duplicate]
- Trouble creating custom sanitization function when uploading video files
- What’s the policy for building a theme that doesn’t support widgets/menus?
- How Does One Create a Global Variable Repository
- Custom link color or stylesheets
- Any Cool WordPress Theme Editor? [closed]
- getting id of page
- Why do some sites show themes/”themename” as the only theme?
- Is there any open source WordPress Themes?
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?
- Full Site Editing, Block Theme, Gutenberg, Site Editor