I've registered a custom setting type to set a site_option
rather than option
or theme_mod
.
I've written the appropriate action hooks to make these values save and preview properly, and can easily get them in my theme with get_site_option
.
However, I feel I am missing something obvious, because my controls cannot fetch these values. Every time I open the customizer, the defaults are back.
It seems like since there is a customize_update_{$setting_type}
action, there should be a customize_get_{$setting_type}
action as well, but there isn't.
The docs seem to only cover saving and previewing custom setting types, nothing about getting their values.
How is this supposed to work?