Astra_Mobile_Header::menu_arrow_button_markup( string $item_output, WP_Post $item )
Get Menu Arrow Button Mark up
Description
Parameters
- $item_output
-
(string) (Required) The menu item's starting HTML output.
- $item
-
(WP_Post) (Required) Menu item data object.
Return
(string) Menu item arrow button markup.
Source
File: inc/class-astra-mobile-header.php
public function menu_arrow_button_markup( $item_output, $item ) { $item_output = apply_filters( 'astra_toggle_button_markup', $item_output, $item ); $item_output .= '<button ' . astra_attr( 'ast-menu-toggle', array( 'aria-expanded' => 'false', ), $item ) . '><span class="screen-reader-text">' . __( 'Menu Toggle', 'astra' ) . '</span>' . Astra_Icons::get_icons( 'arrow' ) . '</button>'; return $item_output; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.7.2 | Introduced. |