PHPackages                             marshallu/mu-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. marshallu/mu-disable-comments

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

marshallu/mu-disable-comments
=============================

Disables all comments sitewide for Marshall University WordPress sites.

v1.0.3(1mo ago)03↓100%MITPHPPHP &gt;=8.3

Since Mar 11Pushed 1mo agoCompare

[ Source](https://github.com/marshallu/mu-disable-comments)[ Packagist](https://packagist.org/packages/marshallu/mu-disable-comments)[ Docs](https://github.com/marshallu/mu-disable-comments)[ RSS](/packages/marshallu-mu-disable-comments/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

MU Disable Comments
===================

[](#mu-disable-comments)

A lean, internal plugin that disables all comments sitewide for Marshall University's WordPress network.

- **Package:** `marshallu/mu-disable-comments`
- **Type:** WordPress plugin

---

What It Disables
----------------

[](#what-it-disables)

- New comments and pings on all post types
- Existing comments rendered on the front end
- Comment feeds
- Comment endpoints in the REST API
- Pingback methods in XML-RPC
- Comments top-level menu in the admin
- Discussion settings page
- Recent Comments dashboard widget
- Comments and Allow Comments meta boxes in the post editor
- Comments column in post list tables
- Comments node in the admin bar
- `comments` and `trackbacks` post type support on all registered post types

---

Installation
------------

[](#installation)

### Manual

[](#manual)

Upload the plugin directory to `wp-content/plugins/` and activate it from the WordPress admin.

```
wp-content/
└── plugins/
    └── mu-disable-comments/
        ├── disable-comments.php
        └── includes/
            └── ...

```

On a **single site**, activate from **Plugins** in the WordPress admin.

On a **multisite network**, activate from **Network Admin &gt; Plugins** to enable it across all sites at once, or activate it per-site as needed.

### Composer

[](#composer)

```
composer require marshallu/mu-disable-comments
```

Composer will install the plugin to `wp-content/plugins/mu-disable-comments/`.

---

How It Works
------------

[](#how-it-works)

### Front End

[](#front-end)

Comment and ping status is overridden at the filter level, regardless of what is saved on individual posts or in WordPress settings. This means no database updates are required — existing post data is left untouched.

FilterBehavior`comments_open`Always returns `false``pings_open`Always returns `false``comments_array`Always returns an empty arrayReturning an empty array from `comments_array` ensures that themes and templates which iterate over comments render nothing, even if comments exist in the database.

Comment feed URLs (e.g. `/?feed=comments-rss2`, `/?p=1&feed=rss2`) are redirected to the home page via `template_redirect`.

### REST API

[](#rest-api)

The `/wp/v2/comments` collection and single-item endpoints are removed from the registered endpoint list before the API responds.

### XML-RPC

[](#xml-rpc)

The `pingback.ping` and `pingback.extensions.getPingbacks` methods are unregistered from the XML-RPC server.

### Admin

[](#admin)

AreaActionComments menuRemoved via `remove_menu_page()``edit-comments.php`Redirected to the dashboard`comment.php`Redirected to the dashboard`options-discussion.php`Redirected to the dashboardRecent Comments widgetRemoved from the dashboard`commentsdiv` meta boxRemoved from all post editors`commentstatusdiv` meta boxRemoved from all post editorsComments columnRemoved from all post list tablesAdmin bar Comments nodeRemovedPost type support`comments` and `trackbacks` removed from all registered post types---

Development
-----------

[](#development)

```
# Install dev dependencies
composer install

# Check coding standards
./vendor/bin/phpcs --standard=WordPress .

# Auto-fix coding standards violations
./vendor/bin/phpcbf --standard=WordPress .

# Run static analysis
./vendor/bin/phpstan analyse
```

All code follows [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards). Functions, hooks, and globals are prefixed `mu_disable_comments_`.

---

File Structure
--------------

[](#file-structure)

```
mu-disable-comments/
├── disable-comments.php                        # Plugin entry point
├── includes/
│   ├── class-mu-disable-comments.php           # Core singleton, bootstraps all classes
│   ├── class-mu-disable-comments-admin.php     # Admin/dashboard suppression
│   └── class-mu-disable-comments-public.php    # Front-end, feeds, REST API, XML-RPC
└── composer.json

```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance89

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~1 days

Total

4

Last Release

54d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34515c639712e2e66d9e7e60f2d3eb4cebc1a048b645b82458d553964f125c26?d=identicon)[mccomaschris](/maintainers/mccomaschris)

---

Top Contributors

[![mccomaschris](https://avatars.githubusercontent.com/u/26128?v=4)](https://github.com/mccomaschris "mccomaschris (5 commits)")

---

Tags

pluginwordpresscomments

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/marshallu-mu-disable-comments/health.svg)

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

###  Alternatives

[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.6k](/packages/afragen-git-updater)[webdevstudios/cmb2-attached-posts

Custom field for CMB2 for creating post relationships.

13565.5k](/packages/webdevstudios-cmb2-attached-posts)[appsero/client

Appsero Client

25431.7k9](/packages/appsero-client)[boxybird/inertia-wordpress

The WordPress adapter for Inertia.js

1827.4k](/packages/boxybird-inertia-wordpress)[iceicetimmy/acf-post-type-selector

Post type selector for Advanced Custom Fields.

559.0k](/packages/iceicetimmy-acf-post-type-selector)[alexis-magina/cmb2-field-post-search-ajax

CMB2 field type to attach posts to each others. Search with Ajax.

3913.4k1](/packages/alexis-magina-cmb2-field-post-search-ajax)

PHPackages © 2026

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