Naming Widget Panel and Loading Timing
I use this code to name the Widget Panel. It functions good half the time. The other half of the time the Widget Panel loads too fast it seems and the other sections/panels do not show in customizer. So the only section in customizer is Widget Panel half the time and you need to force refresh page for the customizer to load correctly with all the options displaying. Is there a better code to use to avoid this problem?
function widget($wp_customize) {
$widgets_section = (object) $wp_customize-get_panel('widgets');
$widgets_section-title = __('My Widget Panel');
$widgets_section-priority = 110;
}
add_action('customize_register', 'widget', 110, 1);
Today I changed the add_action line to be:
add_action('customize_register', 'widget', 310, 1);
And left the 110 on the part:
$widgets_section-priority = 110;
I will try that for a while maybe that will work better.
Topic theme-customizer Wordpress
Category Web