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;

		}

Changelog

Changelog
Version Description
1.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.