astra_masthead_custom_nav_menu_items( 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: inc/template-parts.php

	function astra_masthead_custom_nav_menu_items( $items, $args ) {

		if ( isset( $args->theme_location ) && ! astra_get_option( 'header-display-outside-menu' ) ) {

			if ( 'primary' === $args->theme_location ) {
				$markup = astra_masthead_get_menu_items();

				if ( $markup ) {
					$items .= $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.