PHPackages                             brew-bytes/acorn-disable-comments - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. brew-bytes/acorn-disable-comments

ActivePackage[Utility &amp; Helpers](/categories/utility)

brew-bytes/acorn-disable-comments
=================================

An Acorn package to fully disable WordPress comments site-wide.

v0.1.0(1mo ago)072↑25%MITPHPPHP &gt;=8.1CI passing

Since May 7Pushed 1mo agoCompare

[ Source](https://github.com/Brew-Bytes/acorn-disable-comments)[ Packagist](https://packagist.org/packages/brew-bytes/acorn-disable-comments)[ Docs](https://github.com/Brew-Bytes/acorn-disable-comments)[ RSS](/packages/brew-bytes-acorn-disable-comments/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Acorn Disable Comments
======================

[](#acorn-disable-comments)

A theme-agnostic [Acorn](https://roots.io/acorn/) package that fully disables WordPress comments. Drop it into any [Sage](https://roots.io/sage/) theme (or any Acorn-aware project) and stop re-implementing the same dozen comment- disabling hooks on every build.

Modeled on [`roots/acorn-prettify`](https://github.com/roots/acorn-prettify): each concern lives in its own module, every module is independently toggleable from `config/disable-comments.php`.

What it disables
----------------

[](#what-it-disables)

ModuleWhat it does`close-comments`Closes comments and pingbacks on every post type.`hide-existing-comments`Returns an empty comment array; reports zero comments.`admin-ui`Removes the Comments admin menu, admin-bar item, dashboard widget, list-table columns, and the Discussion settings page. Redirects direct visits.`front-end`Short-circuits `comments_template`, empties comment links, dequeues `comment-reply.js`.`rest-api`Strips `/wp/v2/comments` routes and rejects comment writes.`feeds`Disables the global comments feed and per-post comment feeds.`xml-rpc`Removes the `X-Pingback` header and pingback / comment XML-RPC methods.Installation
------------

[](#installation)

```
composer require brew-bytes/acorn-disable-comments
```

The provider auto-registers via `extra.acorn.providers`. No further wiring needed — defaults disable everything.

### Customizing

[](#customizing)

Publish the config to your app:

```
wp acorn vendor:publish --tag=disable-comments-config
```

Then edit `config/disable-comments.php` to toggle individual modules or sub-features:

```
return [
    'close-comments' => ['enabled' => true],
    'xml-rpc' => [
        'enabled' => true,
        'disable-fully' => false, // keep XML-RPC available for app passwords
    ],
    // ...
];
```

Setting any module's `enabled` to `false` removes its hooks entirely.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Acorn 4.x or 5.x
- WordPress 6.0+

License
-------

[](#license)

MIT © Brew &amp; Bytes

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance93

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

33d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62d079dca70ab62b930f5632778bff44e4e829d9e427c6fa1e97cb9637617021?d=identicon)[BrewandBytes-Scott](/maintainers/BrewandBytes-Scott)

---

Top Contributors

[![BrewandBytes-Scott](https://avatars.githubusercontent.com/u/190101724?v=4)](https://github.com/BrewandBytes-Scott "BrewandBytes-Scott (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

acorn-packagewordpresscommentsrootssageacorn

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/brew-bytes-acorn-disable-comments/health.svg)

```
[![Health](https://phpackages.com/badges/brew-bytes-acorn-disable-comments/health.svg)](https://phpackages.com/packages/brew-bytes-acorn-disable-comments)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k456.5k2](/packages/roots-bedrock)[log1x/sage-directives

A set of Blade directives for use with Roots Sage.

297736.1k8](/packages/log1x-sage-directives)[log1x/pagi

A better WordPress pagination.

61112.5k](/packages/log1x-pagi)[log1x/sage-svg

A simple package for using inline SVGs in Sage 10 projects.

121573.9k5](/packages/log1x-sage-svg)[log1x/crumb

A simple WordPress breadcrumb for Sage 10.

4377.9k](/packages/log1x-crumb)[solarissmoke/disable-comments-mu

This is the must-use version of the Disable Comments WordPress plugin. Copy the contents of this directory into your mu-plugins directory in order to disable comments on the entire site/network, without any configuration. You should delete all existing comments from the WordPress database before activating this plugin. If you want to be able to configure the plugin's behaviour, then use the normal version.

6569.4k](/packages/solarissmoke-disable-comments-mu)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
