No, there is no automatic way to save all defaults, and for good reason. It avoids cluttering the database with unnecessary values, and allows themes to actually change their defaults down the line.
Instead of trying to save all defaults, just change all your calls to get_theme_mod to include the default value as the 2nd parameter. That is how it is intended to be used 🙂
Related Posts:
- How do I remove a pre-existing customizer setting?
- Custom Image section in Customizer
- Get entered value of customiser field for live preview
- How to remove the Theme Customization Button from the dashboard and themes options page?
- Allow Shortcode in Theme Customizer
- Theme Customizer – Nested Sections?
- Trigger Customizer saving process with Javascript only
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- Can we add more than one control under a setting in WP theme customizer?
- Widgets panel not displaying in the Theme Customizer
- Is it possible to display the admin bar while in the Theme Customizer?
- How to Change CSS Variable value in Theme Customizer Live Preview
- How to remove menus section from WordPress theme customizer
- Get background color for Live Preview with Theme Customization API?
- Checking if there is an Image inserted – if not don’t display anything
- Default header image does not display
- WordPress Customizer Control with React
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Modify the Additional CSS section (adding a disclaimer)
- Theme Customizer – Choose where widget area appears, to let users organise widgets
- wordpress custom theme import and export options for sample data [closed]
- How to hook CSS file according to theme selection in the customizer section
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Custom Script Section Only Echoes Text
- How to disable automatic colors in the Twenty Twenty theme?
- WordPress not registering Theme Customization Section
- WP Customize refresh problem
- Input ordering in wordpress theme customizer
- How to add new args data in $wp_customize->add_setting?
- Hide header texts (Title & Tagline) in custom-header.php
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- Using an if statement in the theme customizer page
- How do i make a custom section’s setting display the default value in Customizer?
- How to add styles set by user in the customizer
- JavaScript stops working on selectively refreshed sections one inside the other
- Folder name for a pro version of a WordPress.org theme?
- Display theme layouts [closed]
- “Add A Widget” button in the Customizer
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- Customizer: save setting/control content to post/page
- Using WordPress’ Theme Customizer to select page templates that update layout in the preview
- Is accessing theme and using customizer GPL distribution?
- How to disable wordpress from overload my stylesheet styles with customizer styles
- How to enqueue javascript for WP Customize options sidebar?
- Is it possible to visually group items on the theme customizer?
- Theme Customizer not loading JS for live preview
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Change WordPress header color using customizer
- Default Text not showing from customizer
- Is there any way to register custom background images like header images?
- How to transfer one domain to another domain without losing theme options (customizer)?
- Theme Customizer not displaying saved values in wp_head (CSS)
- Is there a WordPress boolean for “theme_customizer_active()”?
- How to allow certain PHP functions when using sanitize_callback in the word press customizer
- Customizer Color Control Not Working
- where is real values of variables?
- How to allow users to create their own website within my domain? [closed]
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Avada Child Theme Development
- Questions from a new WP Dev [closed]
- Adding a new setting using Kirki or WP customizer with an if statement
- Theme customizer – can’t add section/settings
- Create something that can be added or removed in Customizer
- add shortcode support in customizer
- Customize Option Framework
- How to set a custom URL for the iframe in the customize page
- How to add wysiwyg editor in customize screen using customize_register
- How to register dynamic settings in WordPress Customizer?
- How to copy page/post from one theme to another?
- How to change listing type permlink?
- In wordpress customizer div still showing even if I hid it with javascript
- How to enable admin to upload multiple images to support header carousel slider theme in WordPress?
- Removing element from DOM with jquery through plugin Custom Scripts for Customizer
- Image cropping isn’t working correctly when using Offload Media
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- Fatal error: Class WP_Customize_Image_Control not found
- How do I remove header/page-title image in farvis theme? [closed]
- Duplicate child theme incl. design changes
- Styling the website via the customizer – do the changes stay after theme update?
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- How to toggle WP Customizer Panel and Section with JavaScript API?
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- How to customize the colors within a stylesheet using a WordPress setting
- Add multiple sections, settings and controls at once to the Customizer
- How to fix an issue with customizer live preview?
- How to create multiple customizer controls in one control
- Editable screenshot.png in a custom theme developed
- WordPress Customization API overwrite LESS variable
- Using Customizer value in an external PHP file inside a theme
- get_theme_mod not pulling css colors into header using wp_head
- Customizer API way function is_customize_preview() works only in main page?
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- trying to figure out how to use more that one image upload in the same section in theme customizer
- My theme is full of error messages in the “Customize” screen, but nowhere else
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- WP Customizer get control value on change
- Execute javscript when theme customizer loads (autosave issue)