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; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |