From 21b193648f3aba8b7e2c25fe1cbb9de0bc156530 Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Sun, 10 May 2020 09:22:25 +0200 Subject: [PATCH] menu toolbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -ajout d’un lien vers les themes --- functions.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index f64fc6d..4994c28 100644 --- a/functions.php +++ b/functions.php @@ -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 ); }