[WP Hack] Prevent Admin Access for Logged in Users

For some webdesign projects, you may need to prevent admin access for logged in users. To do so, simply paste following snippet to your functions.php file: function prevent_admin_access() { if ( false !== strpos( strtolower( $_SERVER['REQUEST_URI'] ), '/wp-admin' ) &&…

Remove Updates Menu from WordPress Admin Panel

You can use the remove_submenu_page function to remove updates menu from WordPress admin panel. Here is the snippet: add_action( 'admin_init', 'wpse_38111' ); function wpse_38111() { remove_submenu_page( 'index.php', 'update-core.php' ); } (ref: )