Astra_Nav_Menu_Below_Header_Colors::register_configuration( Array $configurations, WP_Customize_Manager $wp_customize )
Register Mega Menu Customizer Configurations.
Description
Parameters
- $configurations
-
(Array) (Required) Astra Customizer Configurations.
- $wp_customize
-
(WP_Customize_Manager) (Required) instance of WP_Customize_Manager.
Return
(Array) Astra Customizer Configurations with updated configurations.
Source
File: addons/nav-menu/classes/sections/class-astra-nav-menu-below-header-colors.php
public function register_configuration( $configurations, $wp_customize ) { $_configs = array(); if ( is_callable( 'Astra_Sticky_Header_Configs::is_header_section_active' ) && Astra_Sticky_Header_Configs::is_header_section_active() && false === astra_addon_builder_helper()->is_header_footer_builder_active ) { $_configs = array( /** * Option: Sticky Header Below Mega Menu Column Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-below-mega-menus-colors]', 'default' => astra_get_option( 'sticky-header-below-mega-menus-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Mega Menu Heading', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 130, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), ); } return array_merge( $configurations, $_configs ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |