plugin-controls/plugin_controls.php

11 lines
263 B
PHP
Raw Normal View History

2022-12-15 16:18:06 -05:00
<?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