This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Command_Palette::get_customizer_panels()
Get customizer panels configuration
Description
Return
(array) List of customizer panels.
Source
File: inc/core/class-astra-command-palette.php
private function get_customizer_panels() {
$panels = array(
array(
'name' => 'astra/customizer-global',
'label' => __( 'Customizer: Global', 'astra' ),
'searchLabel' => __( 'Global, Container, Layout, Colors, Color, Background, Base Colors, Typography, Font, Fonts, Headings, Text, Buttons, Button, Style, Base Typography', 'astra' ),
'type' => 'panel',
'id' => 'panel-global',
),
array(
'name' => 'astra/customizer-header',
'label' => __( 'Customizer: Header', 'astra' ),
'searchLabel' => __( 'Header, Site Identity, Logo, Site Title, Tagline, Primary Header, Primary Menu, Menu, Navigation, Above Header, Below Header, Mobile Header, Mobile Menu, Search, Button, Social, Account, Cart, Widget, HTML, Off Canvas, Mobile Trigger', 'astra' ),
'type' => 'panel',
'id' => 'panel-header-builder-group',
),
array(
'name' => 'astra/customizer-footer',
'label' => __( 'Customizer: Footer', 'astra' ),
'searchLabel' => __( 'Footer, Footer Widgets, Footer Bar, Copyright, Primary Footer, Above Footer, Below Footer, Menu, Social, HTML, Widget', 'astra' ),
'type' => 'panel',
'id' => 'panel-footer-builder-group',
),
array(
'name' => 'astra/customizer-blog',
'label' => __( 'Customizer: Blog', 'astra' ),
'searchLabel' => __( 'Blog, Archive, Single Post, Post, Single Page, Page, Content, Excerpt, Featured Image, Meta, Author, Date, Categories, Tags, Comments', 'astra' ),
'type' => 'section',
'id' => 'section-blog-group',
),
array(
'name' => 'astra/customizer-general',
'label' => __( 'Customizer: General', 'astra' ),
'searchLabel' => __( 'General, Sidebar, Accessibility, Skip to Content, Block Editor, Gutenberg, Misc, Scroll To Top, Back to Top', 'astra' ),
'type' => 'section',
'id' => 'section-general-group',
),
);
// Add WooCommerce panel only if WooCommerce is active.
if ( class_exists( 'WooCommerce' ) ) {
$panels[] = array(
'name' => 'astra/customizer-woocommerce',
'label' => __( 'Customizer: WooCommerce', 'astra' ),
'searchLabel' => __( 'WooCommerce, Shop, Store, Products, Single Product, Cart, Checkout, Account, My Account, Orders, Sidebar', 'astra' ),
'type' => 'panel',
'id' => 'woocommerce',
);
}
return $panels;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.12.0 | Introduced. |