Update Theme Location Programatically

Generally speaking, you shouldn’t be (or need to be) “updating” the theme_location for a custom nav menu. The theme_location is the template location for a given nav menu. If you need to do dynamic manipulation of a custom nav menu, you might be better off targeting the id of the menu, rather than the theme_location. … Read more

get_theme_mod always returns default

In the Customizer code you need to do following change to work. You dont need ta_pluton_social_link[facebook] like array in Control. Check following example and modify accordingly to other fields also. $wp_customize->add_control(‘facebook’, array( ‘label’ => __(‘Facebook URL’, ‘ta_pluton’), ‘section’ => ‘ta_pluton_social_links’, ‘settings’ => ‘ta_pluton_social_link[facebook]’, )); To fetch URL you can use get_theme_mod. Check example below. Following … Read more