wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_admin_bar_sidebar_toggle › WordPress Function
Since3.8.0
Deprecatedn/a
› wp_admin_bar_sidebar_toggle ( $wp_admin_bar )
Parameters: |
|
Defined at: |
|
Codex: |
Adds the sidebar toggle button.
Related Functions: wp_admin_bar_search_menu, wp_admin_bar_header, wp_admin_bar_render, wp_admin_bar_site_menu, _wp_admin_bar_init
Source
function wp_admin_bar_sidebar_toggle( $wp_admin_bar ) { if ( is_admin() ) { $wp_admin_bar->add_node( array( 'id' => 'menu-toggle', 'title' => '<span class="ab-icon" aria-hidden="true"></span><span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Menu' ) . '</span>', 'href' => '#', ) ); } }