330 Locust Dr.
Verona, WI 53593
Powderkeg Web Design
Message Us

Quickly and Easily Remove Comments in the Backend of WordPress

July 15, 2016

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:

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

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

pk_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!

Lead Developer

Nick is an ambitious and versatile developer with a wide range of talents. He is an efficient coder that utilizes his resources in order to achieve both his and the clients’ goals. His Alma Mater is the University of Wisconsin – Stevens Point where he graduated with honors in Web and Digital Media Development.