Astra_Ext_Advanced_Headers_Markup::header_custom_menu_item( string $value )
Advanced Header Custom Menu Item
Description
Parameters
- $value
-
(string) (Required) Custom Menu Item.
Return
(string)
Source
File: addons/advanced-headers/classes/class-astra-ext-advanced-headers-markup.php
public function header_custom_menu_item( $value ) { $custom_menu_item = Astra_Ext_Advanced_Headers_Loader::astra_advanced_headers_design_option( 'custom-menu-item' ); if ( ! ( self::advanced_header_enabled() ) || ( is_front_page() && 'posts' == get_option( 'show_on_front' ) ) || 'default' == $custom_menu_item || '' == $custom_menu_item ) { return $value; } return $custom_menu_item; }
Expand full source code Collapse full source code View on Trac