This page redirects to an external site: https://developer.wordpress.org/reference/classes/wp_customize_manager/add_section/
Adds a new section to the Theme Customization admin screen. Sections are convenient ways to group controls logically.
This is a method of the WP_Customize_Manager class and can only be accessed through the $wp_customize object within the customize_register action hook.
function mytheme_add_section( $wp_customize ) {
$wp_customize->add_section($id, $args);
}
add_action( 'customize_register', 'mytheme_add_section' );
'active_callback' => 'is_front_page'.WordPress does include a few built-in sections. If you want to use any of the existing, built-in ones, you don't need to declare them with add_section(). Instead, refer to them directly. The following sections are built-in...
Adding a theme section (within the 'customize_register' action) might look like this:
$wp_customize->add_section( 'mytheme_new_section_name' , array(
'title' => __('Visible Section Name','mytheme'),
'priority' => 30,
) );