明白了。
诚然,这让人感觉很不舒服,但似乎做得很好。
在我现有的customize_register
吊钩I设置如下:
// Retreive the widget section in the Theme Customizer
// We need to cast the return of get_section to an object
// "the_widgets_section" in get_section is the ID of the registered widget area
$widget_area = (object) $wp_customize->get_section( \'sidebar-widgets-the_widgets_section\' )
// The value of panel will be \'widgets\', so we set it back to \'\' (top level panel)
$widget_area->panel = \'\';
// If you\'re so inclined, we can change the title of it as well.
$widget_area->title = __( \'My Widgets\', \'textdomain\' );