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