I exploit this code to call the Widget Panel. It features good half the time. The opposite half of the time the Widget Panel masses too quick it appears and the opposite sections/panels don’t present in customizer. So the one part in customizer is Widget Panel half the time and you might want to pressure refresh web page for the customizer to load accurately with all of the choices displaying. Is there a greater code to make use of to keep away from this drawback?
perform widget($wp_customize) {
$widgets_section = (object) $wp_customize->get_panel('widgets');
$widgets_section->title = __('My Widget Panel');
$widgets_section->precedence = 110;
}
add_action('customize_register', 'widget', 110, 1);