Press "Enter" to skip to content

Remove / Hide WordPress Comment Functionality in the Backend

Sometimes we create sites for clients that either don’t have a blog section or do not want / need comments in that blog section. For those clients, I like to remove access to the comments in the admin menu and page / posts so it doesn’t clutter up the screen or confuse anyone. It only takes 3 actions / functions:

These functions, in order, do the follow:

nk_remove_admin_menus: Removes the comments menu item from the main admin menu.

nk_remove_comment_support: Removes comments as a supported feature for the default page and post post-types.

nk_remove_comments_admin_bar: Removes the comments quick link on the admin bar that appear at the top of the front end when you are logged in

That should be make it very difficult for users to stumble upon comments / become confused by them. Enjoy!

    Leave a Reply