Customize Panels

Panel classes in wp-includes/customize/ that extend WP_Customize_Panel.


WP_Customize_Themes_Panel

Panel for browsing and switching themes. Displays active/previewing theme with a "Change" button.

Source: wp-includes/customize/class-wp-customize-themes-panel.php
Since: 4.9.0
Extends: WP_Customize_Panel

Properties

PropertyTypeVisibilityDefaultSinceDescription
$typestringpublic'themes'4.9.0Panel type

Methods

MethodVisibilitySinceDescription
render_template()protected4.9.0Renders panel container (control-panel-themes). Shows "Active theme" or "Previewing theme" label based on $this->manager->is_theme_active(). Includes "Change" button if user has switch_themes capability.
content_template()protected4.9.0Renders panel content with back button, "You are browsing Themes" notice, optional help toggle and description (only for users with install_themes cap, non-multisite), notifications container, and full-width themes container.

WP_Customize_Nav_Menus_Panel

Panel for managing navigation menus. Includes screen options for menu item field visibility.

Source: wp-includes/customize/class-wp-customize-nav-menus-panel.php
Since: 4.3.0
Extends: WP_Customize_Panel

Properties

PropertyTypeVisibilityDefaultSinceDescription
$typestringpublic'nav_menus'4.3.0Panel type

Methods

MethodVisibilitySinceDescription
render_screen_options()public4.3.0Requires wp-admin/includes/nav-menu.php, adds wp_nav_menu_manage_columns filter on manage_nav-menus_columns, then renders screen options via WP_Screen::get('nav-menus.php')->render_screen_options().
wp_nav_menu_manage_columns()public4.3.0Deprecated 4.5.0 in favor of wp_nav_menu_manage_columns(). Requires nav-menu include and delegates.
content_template()protected4.3.0Renders panel content: back button, "You are customizing" title with panel name, help toggle, screen options toggle, optional description, screen options wrap (via render_screen_options()), and "Menus" heading for the sections list.