helsingborg-stad / wpmu-noindex-by-config
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
Requires
- php: >=7.4
- composer/installers: ^2.3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
- Place
wpmu-noindex-by-config.phpin the WordPresswp-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.