I want to be able to customize my theme from any of my sites (mainsite or any subsite) and have that change impact on the entire network.
Right now when I customize, i.e., my main site it doesn't replicate the changes to the rest of subsites.
I know this data is stored under theme_mods_themename, but I need to "copy and paste" this new values (New values generated when I use the customizer) on every site.
Is there a way to "unify" this setting?
Thank you in advance.
UPDATE (DECEMBER 21 2021):
I've found another thing that was making me lose my mind. At least in my case, theme colors are not stored with the rest of the theme settings in theme_mods_kadence-child
, they are stored under kadence_global_palette
in the wp-options
database table.
Still haven't found a way to "Sync" all customizer settings tho. I've been reading about what Pat J said in the first comment, but couldn't crack it yet.
UPDATE (DECEMBER 23 2021)
I finaly solved it! Answer bellow !
update_option_theme_mods_{$theme}
action hook to update a network option when your theme mods are updated, and then pulling that network option's data back out with thetheme_mod_{$name}
filter.