This post has been archived
The content of this post has not been updated since 2015, and may be out of date. Extra care should be taken with any code provided.
The code below will completely disable any commenting and trackback features in WordPress. It is in response to the usual issue whereby you think comments have been completely turned-off only to get a notification that there are a new comments waiting moderation.
This code won’t turn off any “This post has X comments” or front-end code that displays comments that may be in your theme. Instead it removes the ability for comments to be added/stored against posts. To remove front-end comment boxes and listings you’ll need to change your individual templates
Simply copy and paste into your functions.php
file in your WordPress theme folder.
October 2024
The disagreement between WordPress and WP Engine has sparked considerable debate within the WordPress community and could have important implications for users of the WordPress...
→ Continue reading"What's going on between WordPress and WP Engine?"
September 2024
Combining Laravel with WordPress offers a unique and powerful approach to web development, blending the strengths of both platforms to create highly efficient, flexible, and...
September 2024
Switching a WordPress website over to ClassicPress can be done smoothly with minimal impact if approached carefully. The process involves a few key steps to...
→ Continue reading"Switching from WordPress to ClassicPress "
July 2024
The Bitnami package for WordPress provides a quick one-click install solution for WordPress. Once installed you'll most likely need to replace the default install with...
April 2024
ClassicPress is an open-source content management system (CMS) that originated as a fork of WordPress in 2018. It was developed as a response to the...
November 2023
In today's digital age, establishing an online presence is crucial for businesses looking to promote their brand effectively. One powerful tool for achieving this is...
→ Continue reading"Creating a brand-promoting brochure website with WordPress "