Astra_Ext_Header_Sections_Markup::merge_custom_page_menu_header_sections( array $args )

Header Custom Menu Item


Description

=> Used in files:

/header.php


Parameters

$args

(array) (Required) Array of arguments.


Return

(array) Modified menu item array.


Source

File: addons/header-sections/classes/class-astra-ext-header-sections-markup.php

		public function merge_custom_page_menu_header_sections( $args ) {

			if ( isset( $args['theme_location'] ) ) {

				if ( 'primary' === $args['theme_location'] ) {
					$markup              = '';
					$above_header_markup = $this->astra_get_above_header_items();
					if ( $above_header_markup ) {
						$markup .= $above_header_markup;
					}

					$below_header_markup = $this->astra_get_below_header_items();
					if ( $below_header_markup ) {
						$markup .= $below_header_markup;
					}
					if ( $above_header_markup || $below_header_markup ) {
						$args['after'] = $markup . $args['after'];
					}
				}
			}

			return $args;
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.


User Contributed Notes

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