-
-
Notifications
You must be signed in to change notification settings - Fork 28
Remove features
Frank Bültge edited this page Nov 23, 2017
·
7 revisions
The plugin have no UI, settings area to deactivate features.
But all features are stored in a class, directory inc/autoload
and the plugin has a filter to remove features or add custom functionalities.
The follow source demonstrate it. It remove the favicon feature, his class. The plugin is also inside the repository for simple usage, as starter w/e.
<?php
/**
* Plugin Name: Multisite Enhancements Add-on to remove features
* Description: Thhis plugin remove features from the Multisite Enhancement plugin.
* Plugin URI: https://github.com/bueltge/WordPress-Multisite-Enhancements
* Version: 2015-12-03
* Author: Frank Bültge
* Author URI: http://bueltge.de
* License: GPLv2+
* License URI: ./assets/LICENSE
* Text Domain: multisite_enhancements
* Domain Path: /languages
* Network: true
*/
! 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-identifiers.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;
} );
Other WordPress Multisite Solution in my network:
- MultilingualPress The right way to build a multilingual WordPress site!