From afdddc9503cf5a81f2ff4a971b403aeec29a22eb Mon Sep 17 00:00:00 2001 From: Sebastien Hattry Date: Mon, 5 Jul 2021 10:39:48 +0200 Subject: [PATCH] Hide setting menus --- wp-content/themes/klendathu/functions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wp-content/themes/klendathu/functions.php b/wp-content/themes/klendathu/functions.php index ceb2312b..7a9a65c3 100644 --- a/wp-content/themes/klendathu/functions.php +++ b/wp-content/themes/klendathu/functions.php @@ -782,3 +782,13 @@ function register_youtube_button($buttons) { return $buttons }*/ + +function remove_menus(){ + // remove_menu_page( 'edit-comments.php' ); //Comments + // remove_menu_page( 'themes.php' ); //Appearance + remove_menu_page( 'plugins.php' ); //Plugins + remove_menu_page( 'users.php' ); //Users + remove_menu_page( 'tools.php' ); //Tools + remove_menu_page( 'options-general.php' ); //Settings +} +add_action( 'admin_menu', 'remove_menus' );