hide them menu items

This commit is contained in:
sbyrd 2022-12-15 16:18:06 -05:00
commit ad62097fc4
1 changed files with 10 additions and 0 deletions

10
plugin_controls.php Normal file
View File

@ -0,0 +1,10 @@
<?php
//* Remove Menu Links
function plugin_controls_remove_menus() {
remove_menu_page( 'plugins.php' );
remove_menu_page( 'update-core.php' );
}
add_action( 'admin_menu', 'plugin_controls_remove_menus' );
//TODO make plugins only accessible with token