forked from bueltge/wordpress-multisite-enhancements
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-remove-features.php
More file actions
38 lines (34 loc) · 1.29 KB
/
example-remove-features.php
File metadata and controls
38 lines (34 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Plugin Name: Multisite Enhancements Add-on to remove features
* Description: This plugin remove features from the Multisite Enhancement plugin.
* Plugin URI: https://github.com/bueltge/WordPress-Multisite-Enhancements
* Version: 2017-11-26
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv2+
* License URI: ./assets/LICENSE
* Text Domain: multisite-enhancements
* Domain Path: /languages
* Network: true
*
* @package WordPress
*/
! defined( 'ABSPATH' ) and exit;
add_filter( 'multisite_enhancements_autoload', function ( $files ) {
// Unset features by unsetting the filename from the autoloader.
// Uncomment to deactivate.
// unset( $files[ 'class-add-admin-favicon.php' ] );
// unset( $files[ 'class-add-blog-id.php' ] );
// unset( $files[ 'class-add-plugin-list.php' ] );
// unset( $files[ 'class-add-site-status-labels.php' ] );
// unset( $files[ 'class-add-ssl-identifier.php' ] );
// unset( $files[ 'class-add-theme-list.php' ] );
// unset( $files[ 'class-admin-bar-tweaks.php' ] );
// unset( $files[ 'class-change-footer-text.php' ] );
// unset( $files[ 'class-core.php' ] );
// unset( $files[ 'class-filtering-themes.php' ] );
// unset( $files[ 'class-multisite-add-new-plugins.php' ] );
// unset( $files[ 'core.php' ] );
return $files;
} );