Astra_AMP::toggle_button_markup( String $item_output, WP_Post $item )
Set AMP State for eeach sub menu toggle.
Description
Parameters
- $item_output
-
(String) (Required) HTML markup for the menu item.
- $item
-
(WP_Post) (Required) Post object for the navigation menu.
Return
(String) HTML MArkup for the menu including the AML State.
Source
File: inc/compatibility/class-astra-amp.php
public function toggle_button_markup( $item_output, $item ) { $item_output .= '<amp-state id="astraNavMenuItemExpanded' . esc_attr( $item->ID ) . '"><script type="application/json">false</script></amp-state>'; return $item_output; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |