Search by

helsingborg-stad / wpmu-noindex-by-config

sebastianthulin

Disables indexing for the all sites based on configuration.

Package info

github.com/helsingborg-stad/wpmu-noindex-by-config

Type:wordpress-muplugin

pkg:composer/helsingborg-stad/wpmu-noindex-by-config

Statistics

Installs: 34

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.2 2026-10-06 06:45 UTC

This package is auto-updated.

Last update: 2026-10-06 06:52:41 UTC


README

Disables indexing for all sites based on configuration.

By default this plugin does nothing. Providing the const WPMU_NOINDEX with a value of true will enable the noindex behavior.

Usage

Define the constant WPMU_NOINDEX in your wp-config.php file:

define( 'WPMU_NOINDEX', true );

Requirements

  • WordPress with must-use plugins enabled.

Installation

  1. Place wpmu-noindex-by-config.php in the WordPress wp-content/mu-plugins/ directory.

MU plugins load automatically and cannot be activated or deactivated from the WordPress administration interface.

Removing the Plugin

Remove wpmu-noindex-by-config.php from wp-content/mu-plugins/ to stop this behavior.