WP_Customize_Sidebar_Section example

/** * Filters Customizer widget section arguments for a given sidebar. * * @since 3.9.0 * * @param array $section_args Array of Customizer widget section arguments. * @param string $section_id Customizer section ID. * @param int|string $sidebar_id Sidebar ID. */
                    $section_args = apply_filters( 'customizer_widgets_section_args', $section_args$section_id$sidebar_id );

                    $section = new WP_Customize_Sidebar_Section( $this->manager, $section_id$section_args );
                    $this->manager->add_section( $section );

                    if ( $use_widgets_block_editor ) {
                        $control = new WP_Sidebar_Block_Editor_Control(
                            $this->manager,
                            $setting_id,
                            array(
                                'section'     => $section_id,
                                'sidebar_id'  => $sidebar_id,
                                'label'       => $section_args['title'],
                                'description' => $section_args['description'],
                            )
Home | Imprint | This part of the site doesn't use cookies.