Customize Sections

Section classes in wp-includes/customize/ that extend WP_Customize_Section.


WP_Customize_Themes_Section

UI container for theme controls with search, filter, and feature-filter capabilities.

Source: wp-includes/customize/class-wp-customize-themes-section.php
Since: 4.2.0
Extends: WP_Customize_Section

Properties

PropertyTypeVisibilityDefaultSinceDescription
$typestringpublic'themes'4.2.0Section type
$actionstringpublic''4.9.0Theme section action — defines type of themes to load (e.g., 'installed', 'wporg')
$filter_typestringpublic'local'4.9.0Filter type: 'local' (filters loaded themes) or 'remote' (initiates new remote query). Local filtering disables pagination by default.

Methods

MethodVisibilitySinceDescription
json()public4.9.0Returns parent JSON plus action and filter_type.
render_template()protected4.9.0Renders section container with theme overlay, theme browser, search bar, error messages, theme list, "no themes found" messages, and spinner.
filter_bar_content_template()protected4.9.0Renders filter bar: back button, search input, "Filter themes" toggle button (for wporg), and theme count display. Wporg sections get a different search input with live search.
filter_drawer_content_template()protected4.9.0Renders feature filter checkboxes for wporg sections, grouped by feature category from get_theme_feature_list( false ).

WP_Customize_Sidebar_Section

Section representing a widget area (sidebar). Active state depends on whether the sidebar is rendered.

Source: wp-includes/customize/class-wp-customize-sidebar-section.php
Since: 4.1.0
Extends: WP_Customize_Section

Properties

PropertyTypeVisibilityDefaultSinceDescription
$typestringpublic'sidebar'4.1.0Section type
$sidebar_idstringpublic4.1.0Unique sidebar identifier

Methods

MethodVisibilitySinceDescription
json()public4.1.0Returns parent JSON plus sidebarId.
active_callback()public4.1.0Returns $this->manager->widgets->is_sidebar_rendered( $this->sidebar_id ).

WP_Customize_Nav_Menu_Section

Section for a single nav menu. Custom section only needed in JS.

Source: wp-includes/customize/class-wp-customize-nav-menu-section.php
Since: 4.3.0
Extends: WP_Customize_Section

Properties

PropertyTypeVisibilityDefaultSinceDescription
$typestringpublic'nav_menu'4.3.0Section type

Methods

MethodVisibilitySinceDescription
json()public4.3.0Returns parent JSON plus menu_id (extracted from ID pattern nav_menu[-?d+]).

WP_Customize_New_Menu_Section

DEPRECATED 4.9.0 — No longer used as of the menu creation UX introduced in #40104.

Source: wp-includes/customize/class-wp-customize-new-menu-section.php
Since: 4.3.0
Extends: WP_Customize_Section

Properties

PropertyTypeVisibilityDefaultSinceDescription
$typestringpublic'new_menu'4.3.0Section type

Methods

MethodVisibilitySinceDescription
__construct( $manager, $id, $args )public4.9.0Deprecated 4.9.0. Calls _deprecated_function(), then parent.
render()protected4.3.0Deprecated 4.9.0. Renders accordion section with "add menu" toggle button.