wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_admin_bar_sidebar_toggle › WordPress Function
Depuis3.8.0
Dépréciéen/a
› wp_admin_bar_sidebar_toggle ( $wp_admin_bar )
| Paramètres: |
|
| Défini(e) dans: |
|
| Codex: |
Adds the sidebar toggle button.
Fonctions en relation: wp_admin_bar_search_menu, wp_admin_bar_header, wp_admin_bar_render, wp_admin_bar_site_menu, _wp_admin_bar_icon
Source
function wp_admin_bar_sidebar_toggle( $wp_admin_bar ) {
if ( is_admin() ) {
$wp_admin_bar->add_node(
array(
'id' => 'menu-toggle',
'icon' => 'core-admin/menu',
'title' => '<span class="screen-reader-text">' .
/* translators: Hidden accessibility text. */
__( 'Menu' ) .
'</span>',
'href' => '#',
)
);
}
}