Codex tools: Log in
Contents |
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.
$wp_customize->add_section($id, $args);
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,
) );