menu toolbar

-ajout d’un lien vers les themes
This commit is contained in:
2020-05-10 09:22:25 +02:00
parent e3bd4d1ce8
commit 21b193648f

View File

@@ -93,14 +93,23 @@ function custom_toolbar() {
$wp_admin_bar->add_menu( $args );
$args = array(
'id' => 'child6-menu',
'id' => 'child7-menu',
'parent' => 'parent-menu',
'title' => __( 'WP/LR Sync (Galleries)', 'yuzu-child' ),
'href' => 'https://' . '$_SERVER["HTTP_HOST"]' . '/wordpress/wp-admin/admin.php?page=wplr-collections-tags-menu',
);
$wp_admin_bar->add_menu( $args );
$args = array(
'id' => 'child8-menu',
'parent' => 'parent-menu',
'title' => __( 'Themes', 'yuzu-child' ),
'href' => 'https://' . '$_SERVER["HTTP_HOST"]' . '/wordpress/wp-admin/themes.php',
);
$wp_admin_bar->add_menu( $args );
}
if ( current_user_can( 'administrator' ) ) {
add_action( 'wp_before_admin_bar_render', 'custom_toolbar', 999 );
}