Here is a list of all of the above answers and a removal of the admin bar link. Just add it to your themes function file or make it a plugin. I will mark this as a community wiki as everyone’s answer is right just no one added it all together.
<?php
// Removes from admin menu
add_action( 'admin_menu', 'my_remove_admin_menus' );
function my_remove_admin_menus() {
remove_menu_page( 'edit-comments.php' );
}
// Removes from post and pages
add_action('init', 'remove_comment_support', 100);
function remove_comment_support() {
remove_post_type_support( 'post', 'comments' );
remove_post_type_support( 'page', 'comments' );
}
// Removes from admin bar
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('comments');
}
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
?>
Related Posts:
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- Changing Admin Menu Labels
- Add “external” link to admin menu in the backend
- How to add custom submenu links in wp-admin menus?
- Edit specific nodes in WP_Admin_Bar
- How to add notification bubble for my custom admin menu page
- How to create sub menu with a URL parameter?
- Adding a menu item in the admin bar
- How to remove items from +New admin menu?
- Reorder custom submenu item
- Make sub menu items a main link in the admin menu using fuctions.php
- Add column to pages table
- Admin account only shows Profile and Dashboard with no activity
- How to wrap admin menus and menu headers in additional divs without modifying the WordPress core?
- How to disable admin flyout menus?
- remove plugin admin menu in wordpress without installing plugin in v3.8.1
- How to prevent parent admin page from appearring as a child admin page
- Rename W3 Total Cache admin menu
- Remove query var on admin pages when ‘Save changes’ pressed
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- How to sort comments in the “edit-comments.php” table based on a comment meta field?
- wp_comments table really big casuing /wp-admin/edit-comments.php to slowly load
- Remove All in One Pack from the admin bar
- Cannot find an OLD Gravity Form on an OLD Word Press site [closed]
- wrapping ‘rest_api_init’ in ‘is_admin()’ function
- Add column to pages table
- Add menu option to “New Post” menu in admin bar
- Admin menu in front-end
- Remove or move admin submenus under a new menu
- How to get specific page screen ID
- Removing Dashboard Menu Items Through The Database
- WordPress Side Menu Admin Panel Default Order numbers List?
- load-{$page hook} and returned parameter
- Hide admin menu on update_option
- meta box on new admin page
- How to hide Admin Tabs? [duplicate]
- Making Comments, a sub_menu in admin menu
- Admin top level menu, pointing to an external url
- How to break line / add to ADMIN menu
- Creating custom admin panel pages without making a plugin?
- Change users.php WP_User_Query
- How can I control which plugins run in the dashboard?
- how to stop wordpress admin menu from scrolling with page
- Trying to create a page as a menu item in the admin while keeping the admen panel visible
- Custom admin menu order fails if slugs are complicated
- How to remove some author fields from the edit comment page in wp-admin?
- WordPress Admin Panel Left Sidebar No showing on Post create page
- Weird white space in admin area
- How to prevent spams from admin-ajax.php file?
- Redirect from wp-admin back to page
- How to move “Collapse Menu” to top of admin bar?
- Appearance -> Menus doesn’t show
- restrict admin panel sections to users
- Show comments in Backend
- Remove menu item dashboard for a unique user
- How to display status messages in admin panel
- adding existing menu page on new customer user role
- Disable flyout (popup) menus in backend
- Remove Theme menu link from Admin Panel
- Remove capability to interact with a page
- Redirection to external site on admin
- Move Custom Taxonomy Menu to Top Level Admin Menu
- get_current_screen() does not return parent_file
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Admin Page Redirect
- Limit widget to certain sidebar?
- Remove specific items from Quick Edit menu of a Custom Post Type?
- Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?
- Copy my user account’s wp-admin dashboard layout to other users?
- Users are redirected to homepage instead of wp-admin
- Is there a way to submit only meta box content in Post edit page
- Moving wordpress from localhost to server throws admin panel access error?
- How to hide a specific user role option in a user role list?
- Stop loading “collaborators” users on add new post or page?
- Get which template being in use within WordPress-admin
- special characters after saving draft interpreted as �
- /wp-admin/ works but website doesn’t load
- Add custom list menu on Posts page in admin panel
- Use Password Protected Form without the use of wp-login.php
- Too many redirects after added SSL redirect on port 80 virtual host
- “WordPress installations is currently out of date” problem with difficult situation [closed]
- Custom plugin admin page issues
- Customising Word press Admin – Add Post Page functionality to another similar page
- How to add ‘Insert HTML Table’ button to TinyMCE in admin?
- How can I remove commas when adding tags?
- Displaying Title in Title Tag on Edit page?
- How can I remove unwanted word on my WP site?
- issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
- Toggle between block ‘edit content’ and ‘select’ not properly working in WordPress Admin
- Can’t acces login on new site
- After changing Site http to https, can’t access wp login page with a digitalocean hosting
- stop customize.php redirect to login page if admin is not logged in
- Random authentication failures on a load balanced WP setup
- Can I get programmatic access to wp-admin?
- remove_query_arg on options.php
- Organising and display thousands of photos in media library
- Block tools menu in wp-admin?
- get_comments() returns empty array if called through AJAX
- is_admin() triggers error
- Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the “users search” input box