Astra_Ext_Header_Sections_Markup::merge_custom_nav_menu_header_sections( array $items, array $args )
Header Custom Menu Item
Description
=> Used in files:
/header.php
Parameters
- $items
-
(array) (Required) Nav menu item array.
- $args
-
(array) (Required) Nav menu item arguments array.
Return
(array) Modified menu item array.
Source
File: addons/header-sections/classes/class-astra-ext-header-sections-markup.php
public function merge_custom_nav_menu_header_sections( $items, $args ) {
if ( isset( $args->theme_location ) ) {
if ( 'primary' === $args->theme_location ) {
$above_header_markup = $this->astra_get_above_header_items();
if ( $above_header_markup ) {
$items .= $above_header_markup;
}
$below_header_markup = $this->astra_get_below_header_items();
if ( $below_header_markup ) {
$items .= $below_header_markup;
}
}
}
return $items;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |