Saving Default Value for WordPress Customizer Setting

While using WordPress customizer api I got confused with how default value parameter is handled by setting. As I realised that setting do not save default value in database and instead one is supposed to use default parameter for get_theme_mod. I personally found it difficult to provide default value parameter multiple times as part of get_theme_mod call. So, I wrote little extra code to save the default values in database.

Continue Reading