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

	function astra_masthead_custom_page_menu_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 ) {
					$args['after'] = $markup . '</ul>';
				}
			}
		}

		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.