If you want to disable the themes menu in WordPress admin, you can use a code snippet or a plugin. Here's how you can do it:
Using a Code Snippet:
You can add the following code to your WordPress theme's functions.php file to disable the themes menu in WordPress admin:
function remove_theme_menu() {
remove_submenu_page( 'themes.php', 'themes.php' );
}
add_action( 'admin_menu', 'remove_theme_menu', 999 );
This code removes the 'Themes' submenu from the WordPress admin menu. You can customize the code to remove other submenus as well.
Using a Plugin:
You can also use a plugin to disable the themes menu in WordPress admin. One such plugin is 'Adminimize'. Here's how to use it:
- Install and activate the 'Adminimize' plugin from the WordPress plugin repository.
- Go to 'Adminimize' settings from the WordPress admin menu.
- Click on the 'Themes' option under 'Main menu'.
- Uncheck the 'Show' option to hide the 'Themes' menu from the WordPress admin.
That's it! The 'Themes' menu will no longer be visible in the WordPress admin.